We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9a92db + 89d9795 commit 20872efCopy full SHA for 20872ef
Dockerfile
@@ -1,3 +1,11 @@
1
FROM openresty/openresty:1.21.4.2-alpine
2
-
+# Create a non-root user
3
+RUN addgroup -g 1001 appgroup && \
4
+ adduser -D -u 1000 -G appgroup -s /bin/sh app
5
+# Set correct permissions
6
COPY ./dist/ /app/
7
+RUN chown -R app:appgroup /app
8
+# Switch to non-root user
9
+USER 1000:1001
10
+# Optional: set workdir
11
+WORKDIR /app
0 commit comments