Rahul Bhardwaj
commited on
Commit
·
816d6d5
1
Parent(s):
6a9cb78
Add support for docker dev in bolt
Browse files- CONTRIBUTING.md +14 -0
- Dockerfile +16 -0
CONTRIBUTING.md
CHANGED
@@ -108,3 +108,17 @@ pnpm run deploy
|
|
108 |
```
|
109 |
|
110 |
Make sure you have the necessary permissions and Wrangler is correctly configured for your Cloudflare account.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
```
|
109 |
|
110 |
Make sure you have the necessary permissions and Wrangler is correctly configured for your Cloudflare account.
|
111 |
+
|
112 |
+
## Docker Dev
|
113 |
+
|
114 |
+
To build docker image
|
115 |
+
|
116 |
+
```
|
117 |
+
docker build -t bolt-ai .
|
118 |
+
```
|
119 |
+
|
120 |
+
To run bolt dev in docker(Add ANTHROPIC_API_KEY=XXX before running)
|
121 |
+
|
122 |
+
```
|
123 |
+
docker run -p 5173:5173 --env-file .env.local bolt-ai
|
124 |
+
```
|
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:20.15.1
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
RUN npm install -g pnpm
|
6 |
+
|
7 |
+
# Copy the rest of your app's source code
|
8 |
+
COPY . .
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN pnpm install
|
12 |
+
|
13 |
+
# Expose the port the app runs on
|
14 |
+
EXPOSE 5173
|
15 |
+
|
16 |
+
CMD [ "pnpm", "run", "dev" ]
|