Skip to content

Commit ba539d9

Browse files
committed
Merge pull request spring-projects#19029 from dsyer
* pr/19029: Polish "Use caps in docker file example for consistency" Use caps in docker file example for consistency Closes spring-projectsgh-19029
2 parents 130b48c + b842f16 commit ba539d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ For example, using a `Dockerfile` you could express it in this form:
4141
----
4242
FROM openjdk:8-jdk-alpine AS builder
4343
WORKDIR target/dependency
44-
ARG appjar
45-
COPY ${appjar} app.jar
44+
ARG APPJAR=target/*.jar
45+
COPY ${APPJAR} app.jar
4646
RUN jar -xf ./app.jar
4747
4848
FROM openjdk:8-jre-alpine
@@ -54,11 +54,11 @@ For example, using a `Dockerfile` you could express it in this form:
5454
ENTRYPOINT ["java","-cp","app:app/lib/*","com.example.MyApplication"]
5555
----
5656

57-
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:
57+
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:
5858

5959
[indent=0]
6060
----
61-
docker build --build-arg appjar=path/to/myapp.jar .
61+
docker build --build-arg APPJAR=path/to/myapp.jar .
6262
----
6363

6464

0 commit comments

Comments
 (0)