Skip to content

Commit

Permalink
Merge pull request #19029 from dsyer
Browse files Browse the repository at this point in the history
* pr/19029:
  Polish "Use caps in docker file example for consistency"
  Use caps in docker file example for consistency

Closes gh-19029
  • Loading branch information
snicoll committed Nov 16, 2019
2 parents 130b48c + b842f16 commit ba539d9
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -41,8 +41,8 @@ For example, using a `Dockerfile` you could express it in this form:
----
FROM openjdk:8-jdk-alpine AS builder
WORKDIR target/dependency
ARG appjar
COPY ${appjar} app.jar
ARG APPJAR=target/*.jar
COPY ${APPJAR} app.jar
RUN jar -xf ./app.jar
FROM openjdk:8-jre-alpine
Expand All @@ -54,11 +54,11 @@ For example, using a `Dockerfile` you could express it in this form:
ENTRYPOINT ["java","-cp","app:app/lib/*","com.example.MyApplication"]
----

Assuming the above `Dockerfile` is the current directory, your docker image can be built specifying the path to your application jar, as show in the following example:
Assuming the above `Dockerfile` is the current directory, your docker image can be built with `docker build .`, or optionally specifying the path to your application jar, as show in the following example:

[indent=0]
----
docker build --build-arg appjar=path/to/myapp.jar .
docker build --build-arg APPJAR=path/to/myapp.jar .
----


Expand Down

0 comments on commit ba539d9

Please sign in to comment.