fix: remove chown -R /app to avoid slow build on large node_modules

This commit is contained in:
WildDragon Deploy 2026-05-28 00:01:34 -04:00
parent 25cd89c37e
commit 3412ba2af3

View file

@ -24,10 +24,9 @@ ENV VITE_FORGEJO_BASE_URL=${FORGEJO_BASE_URL}
COPY . . COPY . .
RUN npm run build RUN npm run build
# Create persistent data dirs with correct ownership # Create persistent data dirs and set ownership only on runtime-writable paths
RUN mkdir -p /home/node/workspace /home/node/.cloudcli /home/node/.claude \ RUN mkdir -p /home/node/workspace /home/node/.cloudcli /home/node/.claude \
&& chown -R node:node /home/node/ \ && chown -R node:node /home/node/
&& chown -R node:node /app
USER node USER node