From b95e8a4df6f8dd821a9f83d3caa74cfc6000265c Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 15 Nov 2019 14:22:19 +0000 Subject: [PATCH] Use caps in docker file example for consistency See gh-19029 --- .../spring-boot-docs/src/main/asciidoc/deployment.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc index 43528623db6..5c731130437 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/deployment.adoc @@ -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 @@ -54,7 +54,7 @@ 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] ---- @@ -62,7 +62,6 @@ Assuming the above `Dockerfile` is the current directory, your docker image can ---- - [[cloud-deployment]] == Deploying to the Cloud Spring Boot's executable jars are ready-made for most popular cloud PaaS (Platform-as-a-Service) providers.