Skip to content

Commit ad45f4a

Browse files
committed
Use port 80
1 parent e9bf093 commit ad45f4a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
FROM eclipse-temurin:21-jre-alpine
2-
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
32
WORKDIR /app
43
COPY target/pic-sure-logging-*.jar app.jar
5-
RUN mkdir -p /app/logs && chown appuser:appgroup /app/logs
6-
USER appuser
7-
EXPOSE ${PORT:-8080}
4+
RUN mkdir -p /app/logs
5+
EXPOSE 80
86
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
9-
CMD wget --spider -q http://localhost:${PORT:-8080}/health || exit 1
7+
CMD wget --spider -q http://localhost:80/health || exit 1
108
ENTRYPOINT ["java", "-jar", "app.jar"]

0 commit comments

Comments
 (0)