This commit is contained in:
@@ -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
|
# 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 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/node_modules
|
||||||
VOLUME /usr/src/app/public
|
VOLUME /usr/src/app/public
|
||||||
|
Reference in New Issue
Block a user