mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-28 23:31:14 +00:00
Use the 'node' user instead of root when running. (#1894)
This commit is contained in:
parent
64df6663c8
commit
1d73a57297
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ FROM node:alpine as runner
|
|||
COPY --from=builder /usr/src/app/dist /app/dist
|
||||
COPY --from=builder /usr/src/app/node_modules /app/node_modules
|
||||
|
||||
RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
EXPOSE 1234
|
||||
WORKDIR /app
|
||||
CMD node dist/js/server.js
|
||||
|
|
Loading…
Reference in a new issue