暂存提交

This commit is contained in:
2026-07-30 22:46:32 +08:00
parent 6928149884
commit c54251e057
2 changed files with 92 additions and 3 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
ARG BASE_IMAGE=docker.m.daocloud.io/library/eclipse-temurin:17-jre-alpine
FROM ${BASE_IMAGE}
RUN apk add --no-cache curl \
&& addgroup -S app \
RUN addgroup -S app \
&& adduser -S -G app -u 10001 app
WORKDIR /app
@@ -18,6 +17,6 @@ ENV JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError -Dfile.enco
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD curl -fsS "http://127.0.0.1:${SERVER_PORT}/actuator/health" || exit 1
CMD busybox wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT}/actuator/health" || exit 1
ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -jar /app/app.jar"]