Skip to content

Commit

Permalink
Add comment to explain ARG passing
Browse files Browse the repository at this point in the history
  • Loading branch information
thadguidry committed Nov 10, 2024
1 parent d5cebdd commit 8acfce4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM bellsoft/liberica-runtime-container:jre-21-cds-slim-musl
WORKDIR /opt/app

# cp target/db2rest.jar /opt/app/db2rest.jar
# ARG JAR_FILE is passed in from the Buildx `build-args` input during GitHub dockerhub-publish.yml action
COPY ${JAR_FILE} db2rest.jar

Check warning on line 8 in Dockerfile

View workflow job for this annotation

GitHub Actions / build_docker_image

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$JAR_FILE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

# uncomment EXPOSE if you wish to automatically expose
Expand Down

0 comments on commit 8acfce4

Please sign in to comment.