mfoud444 commited on
Commit
9e3f559
·
verified ·
1 Parent(s): b468eb8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -6,13 +6,15 @@ WORKDIR /app
6
 
7
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
8
 
9
- # Change ownership to existing "node" user
10
  RUN chown -R node:node /app
11
 
12
- # Switch to non-root user (already exists)
13
  USER node
14
 
15
- RUN npm install -g pnpm
 
 
16
  RUN pnpm install
17
 
18
  EXPOSE 7860
 
6
 
7
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
8
 
9
+ # Fix ownership
10
  RUN chown -R node:node /app
11
 
12
+ # Use existing non-root user
13
  USER node
14
 
15
+ # Use corepack to activate pnpm
16
+ RUN corepack enable && corepack prepare pnpm@latest --activate
17
+
18
  RUN pnpm install
19
 
20
  EXPOSE 7860