Skip to content

Commit

Permalink
Add support for docker dev in bolt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Bhardwaj committed Oct 6, 2024
1 parent 6a9cb78 commit 816d6d5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,17 @@ pnpm run deploy
```

Make sure you have the necessary permissions and Wrangler is correctly configured for your Cloudflare account.

## Docker Dev

To build docker image

```
docker build -t bolt-ai .
```

To run bolt dev in docker(Add ANTHROPIC_API_KEY=XXX before running)

```
docker run -p 5173:5173 --env-file .env.local bolt-ai
```
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:20.15.1

WORKDIR /app

RUN npm install -g pnpm

# Copy the rest of your app's source code
COPY . .

# Install dependencies
RUN pnpm install

# Expose the port the app runs on
EXPOSE 5173

CMD [ "pnpm", "run", "dev" ]

0 comments on commit 816d6d5

Please sign in to comment.