Skip to content

Commit 37d8f37

Browse files
authored
chore(Dockerfile): remove user from Dockerfile (#245)
1 parent 8672360 commit 37d8f37

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Dockerfile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,8 @@ EOT
7878

7979
ENV PATH=/app/bin:$PATH
8080

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
9481
WORKDIR /app
95-
9682
ENTRYPOINT ["/app/bin/kodit"]
9783

9884
# 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
85+
COPY --from=build /app /app

0 commit comments

Comments
 (0)