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.
1 parent 7b51c5a commit 8e51791Copy full SHA for 8e51791
.github/workflows/publish.yml
@@ -74,7 +74,7 @@ jobs:
74
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
75
with:
76
context: .
77
- platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
+ platforms: linux/amd64,linux/arm64/v8
78
push: true
79
cache-from: type=gha
80
cache-to: type=gha,mode=max
Dockerfile
@@ -18,4 +18,9 @@ RUN set -ex; \
18
COPY index.js settings.js ./
19
COPY views ./views
20
21
+# Ensure the application directory is owned by an unprivileged user and run as that user
22
+RUN chown -R 1000:1000 /app
23
+
24
+USER 1000
25
26
CMD ["node", "index.js"]
0 commit comments