mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 04:11:12 +00:00
Use the 'node' user instead of root when running. (#1894)
This commit is contained in:
parent
ed0fd264de
commit
462bdb10c9
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