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 8672360 commit 37d8f37Copy full SHA for 37d8f37
Dockerfile
@@ -78,23 +78,8 @@ EOT
78
79
ENV PATH=/app/bin:$PATH
80
81
-# Don't run your app as root.
82
-RUN <<EOT
83
-groupadd -r app
84
-useradd -r -d /app -g app -N app
85
-EOT
86
-
87
-STOPSIGNAL SIGINT
88
89
-# Configure a default data directory so the app can write to it and volumes can be mounted to it
90
-RUN mkdir -p /data && chown -R app:app /data
91
-ENV DATA_DIR=/data
92
93
-USER app
94
WORKDIR /app
95
96
ENTRYPOINT ["/app/bin/kodit"]
97
98
# Copy the pre-built `/app` directory to the runtime container
99
-# and change the ownership to user app and group app in one step.
100
-COPY --from=build --chown=app:app /app /app
+COPY --from=build /app /app
0 commit comments