Enable non-root container build

Closes #308.
This commit is contained in:
Lukas Frischknecht 2022-02-08 17:27:17 +01:00
parent 750891cffa
commit f8b69660c2
No known key found for this signature in database
GPG key ID: 0A7CFE7254F8A4DA
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