mirror of
https://github.com/pawelmalak/flame.git
synced 2025-04-23 13:27:21 -04:00
update Dockerfile to use node (UID 1000) user when running the image
This commit is contained in:
parent
9d73e5faf4
commit
f5b15dc9ea
1 changed files with 5 additions and 1 deletions
|
@ -35,4 +35,8 @@ EXPOSE 5005
|
|||
ENV NODE_ENV=production
|
||||
ENV PASSWORD=flame_password
|
||||
|
||||
CMD ["sh", "-c", "chown -R node /app/data && node server.js"]
|
||||
# Update permissions and set default user to "node" (provided in base image as user with UID 1000) to be able to run rootless
|
||||
RUN chown -R node:node /app
|
||||
USER node
|
||||
|
||||
CMD ["sh", "-c", "node server.js"]
|
Loading…
Add table
Add a link
Reference in a new issue