mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Support using with docker compose
This commit is contained in:
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
FROM node:18
|
||||||
|
|
||||||
|
ADD . /work
|
||||||
|
WORKDIR /work
|
||||||
|
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
CMD ["bash"]
|
||||||
@@ -21,6 +21,12 @@ npm ci
|
|||||||
npm run dev # or: npm run build
|
npm run dev # or: npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Use with docker compose
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
||||||
@@ -43,4 +49,4 @@ npm run dev # or: npm run build
|
|||||||
<!-- markdownlint-restore -->
|
<!-- markdownlint-restore -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||||
|
|||||||
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
chatgpt_web:
|
||||||
|
container_name: chatgpt_web
|
||||||
|
command: npm run deploy
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5173:5173
|
||||||
|
build:
|
||||||
|
context: "."
|
||||||
|
dockerfile: Dockerfile
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
"deploy": "vite --host 0.0.0.0",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"build:github": "vite build --base=/chatgpt-web/",
|
"build:github": "vite build --base=/chatgpt-web/",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
|||||||
Reference in New Issue
Block a user