Skip to content

Commit 1f18888

Browse files
committed
fix: Improve JAR file handling in Dockerfile
1 parent 6b1fea2 commit 1f18888

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ WORKDIR /app/Location-based-target-authentication
66

77
RUN chmod +x ./gradlew
88
RUN ./gradlew bootJar -x test -x clean --build-cache --parallel
9+
RUN mkdir -p /build/libs
10+
RUN cp build/libs/*.jar /build/libs/
911

1012
FROM cloudtype/jre:17
1113
WORKDIR /app
12-
COPY --from=build /app/Location-based-target-authentication/build/libs/*.jar /app/app.jar
14+
COPY --from=build /build/libs/*.jar app.jar
1315

1416
EXPOSE 8443
15-
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
17+
ENTRYPOINT ["java", "-jar", "app.jar"]

0 commit comments

Comments
 (0)