diff --git a/Dockerfile b/Dockerfile index 8b0cd99..5a31da6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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