Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for docker dev #100

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2806a65
Create bug_report.yml
apai4 Oct 3, 2024
4cf007b
fix: update README.md (#3)
samdenty Oct 3, 2024
dfebd40
Update README.md
kc0tlh Oct 3, 2024
3181d50
Update README.md
kc0tlh Oct 3, 2024
72df4b8
Update README.md
kc0tlh Oct 3, 2024
36f219f
Update README.md
kc0tlh Oct 3, 2024
84c5da8
Update README.md
kc0tlh Oct 3, 2024
dbef8c1
Create MAIN-FOLDER-README.md
kc0tlh Oct 3, 2024
efac3a7
Update MAIN-FOLDER-README.md
kc0tlh Oct 3, 2024
bf65a7e
Update MAIN-FOLDER-README.md
kc0tlh Oct 3, 2024
85d2b6f
feat: add readme image (#4)
samdenty Oct 3, 2024
5580ab9
fix: typo
samdenty Oct 3, 2024
14da2f0
fix: remove duplicated bug_report template
samdenty Oct 3, 2024
9a1ab23
fix: update links
samdenty Oct 3, 2024
8840d00
Update MAIN-FOLDER-README.md
kc0tlh Oct 3, 2024
fc82dda
Rename README.md to CONTRIBUTING.md
kc0tlh Oct 3, 2024
292e923
Rename MAIN-FOLDER-README.md to README.md
kc0tlh Oct 3, 2024
c85fd80
Update README.md
kc0tlh Oct 3, 2024
506ed1d
Update CONTRIBUTING.md
kc0tlh Oct 3, 2024
aa6148f
Update CONTRIBUTING.md
kc0tlh Oct 3, 2024
537389e
Update README.md
kc0tlh Oct 3, 2024
6694e14
Update README.md (#7)
buntured Oct 3, 2024
f6d79c5
fix: add screen recordings section to bug_report.yml
samdenty Oct 3, 2024
6a9cb78
fix(browser-extensions): don't render directly in body
samdenty Oct 4, 2024
816d6d5
Add support for docker dev in bolt
Oct 6, 2024
f90f60b
Update node version and enable host network
Oct 6, 2024
71c4398
Merge branch 'main' into add-docker-support
d3lm Oct 7, 2024
5f62d1f
Merge branch 'main' into add-docker-support
bhardwajRahul Oct 8, 2024
65629d0
Update Dockerfile
bhardwajRahul Oct 10, 2024
a4a722b
Add corepack to setup pnpm
Oct 10, 2024
8fb0248
Merge branch 'main' into add-docker-support
bhardwajRahul Oct 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.18.0

WORKDIR /app

# Install dependencies (this step is cached as long as the dependencies don't change)
COPY package.json pnpm-lock.yaml ./

RUN corepack enable pnpm && pnpm install

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

# Expose the port the app runs on
EXPOSE 5173

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