mfoud444 commited on
Commit
3332ce4
·
verified ·
1 Parent(s): 361def5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Node.js LTS base image
2
+ FROM node:lts-alpine
3
+
4
+ # Install git and bash
5
+ RUN apk add --no-cache git bash
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Clone the repo (use stable branch for production)
11
+ RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
12
+
13
+ # Install pnpm globally
14
+ RUN npm install -g pnpm
15
+
16
+ # Install dependencies
17
+ RUN pnpm install
18
+
19
+ # Build the project
20
+ RUN pnpm build
21
+
22
+ # Expose port 7860
23
+ EXPOSE 7860
24
+
25
+ # Start the production server on port 7860
26
+ CMD ["pnpm", "run", "preview", "--", "--port", "7860"]