Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Fix errors found while following along #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You could pass in the `JAR_FILE` as part of the `docker` command (it differs for
====
[source,bash]
----
docker build --build-arg JAR_FILE=target/*.jar -t myorg/myapp .
docker build --build-arg JAR_FILE=target/\*.jar -t myorg/myapp .
----
====

Expand All @@ -44,7 +44,7 @@ For Gradle, the following command works:
====
[source,bash]
----
docker build --build-arg JAR_FILE=build/libs/*.jar -t myorg/myapp .
docker build --build-arg JAR_FILE=build/libs/\*.jar -t myorg/myapp .
----
====

Expand Down Expand Up @@ -146,7 +146,7 @@ FROM eclipse-temurin:17-jdk-alpine
VOLUME /tmp
COPY run.sh .
COPY target/*.jar app.jar
ENTRYPOINT ["run.sh"]
ENTRYPOINT ["./run.sh"]
----
====

Expand Down Expand Up @@ -266,7 +266,7 @@ FROM eclipse-temurin:17-jdk-alpine
VOLUME /tmp
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"]
ENTRYPOINT ["sh", "-c", "java -jar /app.jar ${0} ${@}"]
----
====

Expand Down