We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c12dddf + 3808201 commit 85127fdCopy full SHA for 85127fd
Dockerfile
@@ -19,8 +19,9 @@ USER node
19
20
WORKDIR /app
21
22
-COPY --from=build /app/wwwroot wwwroot
23
-COPY --from=build /app/node_modules node_modules
+# Without the chown when copying directories, wwwroot is owned by root:root.
+COPY --from=build --chown=node:node /app/wwwroot wwwroot
24
+COPY --from=build --chown=node:node /app/node_modules node_modules
25
COPY --from=build /app/devserverconfig.json serverconfig.json
26
COPY --from=build /app/index.js index.js
27
COPY --from=build /app/package.json package.json
0 commit comments