mfoud444 commited on
Commit
a2488a9
·
verified ·
1 Parent(s): 5cdb239

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -6,9 +6,12 @@ RUN apk add --no-cache git bash
6
  # Set working directory
7
  WORKDIR /app
8
 
9
- # Clone the repo (stable branch)
10
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
11
 
 
 
 
12
  # Install pnpm globally
13
  RUN npm install -g pnpm
14
 
@@ -18,5 +21,5 @@ RUN pnpm install
18
  # Expose port 7860
19
  EXPOSE 7860
20
 
21
- # Start the development server on port 7860
22
  CMD ["pnpm", "run", "dev", "--", "--port", "7860"]
 
6
  # Set working directory
7
  WORKDIR /app
8
 
9
+ # Clone the repo
10
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
11
 
12
+ # Mark directory as safe for git
13
+ RUN git config --global --add safe.directory /app
14
+
15
  # Install pnpm globally
16
  RUN npm install -g pnpm
17
 
 
21
  # Expose port 7860
22
  EXPOSE 7860
23
 
24
+ # Start the development server
25
  CMD ["pnpm", "run", "dev", "--", "--port", "7860"]