diff --git a/.gitignore b/.gitignore index 38dc319a0..2dc2d4f2d 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ yarn-error.log* .pnpm-debug.log* # local env files -.env*.local +.env # vercel .vercel diff --git a/README.md b/README.md index 8f77f8530..d8b0dfdcd 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,24 @@ with features that matter to them. ![Much features, so fun](docs/pixels/big-AGI-compo2b.png) +## Docker 🐳 + +### Pre-built image +Add your OpenAI API key to the `.env` file, then in a terminal run: + +```bash +docker-compose up +``` + +### Locally built image + +If you wish to build the image yourself, run + +```bash +docker build -t big-agi . +docker run --detach 'big-agi' +``` + ## Code 🧩 ![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=&logo=typescript&logoColor=white) diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000..05a25c32a --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +version: '3.9' + +services: + big-agi: + image: ghcr.io/enricoros/big-agi:main + ports: + - 3000:3000 + env_file: + - .env + command: ["next", "start", "-p", "3000" ] \ No newline at end of file