Fix Docker chown logic
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ COPY --from=build ${APP_DIRECTORY}/app .
|
||||
ENV PATH ${APP_DIRECTORY}/node_modules/.bin:$PATH
|
||||
|
||||
# Set user and group rights
|
||||
RUN chown -R node:node ${APP_DIRECTORY}
|
||||
RUN chown -R node:node ${APP_DIRECTORY}/node_modules
|
||||
|
||||
# Run as node
|
||||
USER node
|
||||
|
||||
Reference in New Issue
Block a user