This commit is contained in:
parent
3ea8ef89d6
commit
3da1bf92c5
@ -15,5 +15,10 @@ RUN apt update && \
|
||||
# make sure node_modules and public exist so we can ensure it's own by the right user
|
||||
RUN mkdir /usr/src/app/{node_modules,public}
|
||||
|
||||
RUN chown -R node /usr/src/app
|
||||
RUN chown -R node /root
|
||||
|
||||
USER node
|
||||
|
||||
VOLUME /usr/src/app/node_modules
|
||||
VOLUME /usr/src/app/public
|
||||
|
Loading…
Reference in New Issue
Block a user