We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a60e34 commit f3d94acCopy full SHA for f3d94ac
Dockerfile
@@ -1,12 +1,14 @@
1
FROM eclipse-temurin:17-alpine
2
3
# Install curl for the healthcheck
4
-RUN apk update && apk add curl
+RUN apk update \
5
+ && apk add curl \
6
+ && adduser -h /opt/app -H -D app
7
-RUN addgroup -S pingapi \
- && adduser -S pingapi -G pingapi \
8
- && chown -R pingapi:pingapi /opt/app
9
-USER pingapi:pingapi
+RUN mkdir -p /opt/app && \
+ chown app:app /opt/app
10
+
11
+USER app:app
12
13
WORKDIR /opt/app
14
0 commit comments