fix: remove chown -R /app to avoid slow build on large node_modules
This commit is contained in:
parent
25cd89c37e
commit
3412ba2af3
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue