Enable non-root container build

Closes #308.
This commit is contained in:
Lukas Frischknecht 2022-02-08 17:27:17 +01:00 committed by Simon Weald
parent 3c347c854c
commit acfa961cd7
2 changed files with 8 additions and 0 deletions

View file

@ -22,8 +22,12 @@ COPY --from=builder /app /app
WORKDIR /app
RUN chown -R node:node .
EXPOSE 5005
USER node
ENV NODE_ENV=production
ENV PASSWORD=flame_password

View file

@ -23,8 +23,12 @@ COPY --from=builder /app /app
WORKDIR /app
RUN chown -R node:node .
EXPOSE 5005
USER node
ENV NODE_ENV=production
ENV PASSWORD=flame_password