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 . .
|
||||
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 \
|
||||
&& chown -R node:node /home/node/ \
|
||||
&& chown -R node:node /app
|
||||
&& chown -R node:node /home/node/
|
||||
|
||||
USER node
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue