Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e670404

Browse files
committed
Fixed incorrect jar filename with SNAPSHOT from jar file copy step in Dockerfile_build, added print of jar files
1 parent e82853b commit e670404

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile_build

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ RUN mvn package
1414
# ENTRYPOINT java -jar /code/target/javafxlibrary-*-SNAPSHOT-jar-with-dependencies.jar
1515

1616
FROM ubuntu:16.04
17-
COPY --from=builder /code/target/javafxlibrary-*-SNAPSHOT-jar-with-dependencies.jar /.
18-
COPY --from=builder /code/target/javafxlibrary-*-SNAPSHOT-tests.jar /.
17+
COPY --from=builder /code/target/javafxlibrary-*-jar-with-dependencies.jar /.
18+
COPY --from=builder /code/target/javafxlibrary-*-tests.jar /.
19+
RUN echo "Built following jar files" && ls -latr /*.jar
1920
COPY entrypoint_build.sh /.
2021
RUN apt-get -qq update && apt-get dist-upgrade -y && apt-get install -qq --no-install-recommends --allow-unauthenticated -y \
2122
openjdk-8-jre \

0 commit comments

Comments
 (0)