Skip to content

Commit 863c503

Browse files
authored
Update Dockerfile
1 parent 893fc8b commit 863c503

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-boot/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ ENTRYPOINT java -XX:+UnlockExperimentalVMOptions \
1717
-jar ./app.jar
1818
CMD /bin/bash
1919
EXPOSE 8080
20-
HEALTHCHECK --interval=1s \
21-
--timeout=1s \
20+
HEALTHCHECK --timeout=1s \
2221
--retries=33 \
23-
CMD curl -f http://127.0.0.1:8080/health || exit 1
24-
COPY ./build/libs/*.jar ./app.jar
22+
CMD curl -f http://127.0.0.1:8080/actuator/health || exit 1
23+
COPY --chown=app ./build/libs/*.jar ./app.jar

0 commit comments

Comments
 (0)