We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9bf093 commit ad45f4aCopy full SHA for ad45f4a
Dockerfile
@@ -1,10 +1,8 @@
1
FROM eclipse-temurin:21-jre-alpine
2
-RUN addgroup -S appgroup && adduser -S appuser -G appgroup
3
WORKDIR /app
4
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}
+RUN mkdir -p /app/logs
+EXPOSE 80
8
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
9
- CMD wget --spider -q http://localhost:${PORT:-8080}/health || exit 1
+ CMD wget --spider -q http://localhost:80/health || exit 1
10
ENTRYPOINT ["java", "-jar", "app.jar"]
0 commit comments