forked from team-UND/beforegoing-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (16 loc) · 659 Bytes
/
Dockerfile
File metadata and controls
32 lines (16 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM eclipse-temurin:17-jre-alpine AS base
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
WORKDIR /app
ARG JAR_FILE=build/libs/*.jar
COPY --chown=appuser:appgroup ${JAR_FILE} app.jar
USER appuser
EXPOSE 8080
EXPOSE 10090
ENTRYPOINT ["java", "-jar", "app.jar"]
FROM base AS dev
HEALTHCHECK --start-period=90s --interval=20s --timeout=20s --retries=3 \
CMD ["wget", "--quiet", "--spider", "http://localhost:8080/server/actuator/health"]
FROM base AS stg
HEALTHCHECK --start-period=90s --interval=15s --timeout=5s --retries=3 \
CMD ["wget", "--quiet", "--spider", "http://localhost:10090/server/actuator/health"]
FROM stg AS prod