legends810 commited on
Commit
9e2362c
·
verified ·
1 Parent(s): 9ff8c85

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- # Updated Dockerfile for bolt.diy - runs the actual app
2
  FROM --platform=linux/amd64 node:20.18.0
3
 
4
  WORKDIR /app
@@ -9,7 +9,7 @@ RUN corepack enable pnpm
9
  # Copy package files
10
  COPY package.json pnpm-lock.yaml ./
11
 
12
- # Install dependencies (full, for dev/prod)
13
  RUN pnpm install
14
 
15
  # Copy the rest of the application
@@ -21,5 +21,5 @@ ENV PORT=7860
21
 
22
  EXPOSE 7860
23
 
24
- # Start the bolt.diy app (use the repo's start script)
25
- CMD ["pnpm", "run", "start"] # अगर repo में 'start' script नहीं है, तो 'dev' use करें: ["pnpm", "run", "dev", "--host", "0.0.0.0"]
 
1
+ # Updated Dockerfile for bolt.diy - runs the actual dynamic app
2
  FROM --platform=linux/amd64 node:20.18.0
3
 
4
  WORKDIR /app
 
9
  # Copy package files
10
  COPY package.json pnpm-lock.yaml ./
11
 
12
+ # Install all dependencies (for dev/prod)
13
  RUN pnpm install
14
 
15
  # Copy the rest of the application
 
21
 
22
  EXPOSE 7860
23
 
24
+ # Start the bolt.diy app with correct script (check package.json for exact script)
25
+ CMD ["pnpm", "run", "dev", "--host", "0.0.0.0", "--port", "7860"] # अगर 'dev' script नहीं है, तो 'start' use करें