Merge pull request #48 from Sixzeroo/main
Support using with docker compose
This commit is contained in:
		
						commit
						80f2b8069c
					
				| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
FROM node:18-alpine
 | 
			
		||||
 | 
			
		||||
ADD . /work
 | 
			
		||||
WORKDIR /work
 | 
			
		||||
 | 
			
		||||
RUN npm ci
 | 
			
		||||
 | 
			
		||||
CMD ["npm", "run", "dev:public"]
 | 
			
		||||
| 
						 | 
				
			
			@ -21,6 +21,12 @@ npm ci
 | 
			
		|||
npm run dev # or: npm run build
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Use with Docker compose
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
docker compose up -d
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Contributors
 | 
			
		||||
 | 
			
		||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
 | 
			
		||||
| 
						 | 
				
			
			@ -46,4 +52,4 @@ npm run dev # or: npm run build
 | 
			
		|||
<!-- markdownlint-restore -->
 | 
			
		||||
<!-- prettier-ignore-end -->
 | 
			
		||||
 | 
			
		||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
 | 
			
		||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
version: "3"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  chatgpt_web:
 | 
			
		||||
    container_name: chatgpt_web
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
      - 5173:5173
 | 
			
		||||
    build:
 | 
			
		||||
      context: "."
 | 
			
		||||
      dockerfile: Dockerfile
 | 
			
		||||
| 
						 | 
				
			
			@ -5,6 +5,7 @@
 | 
			
		|||
  "type": "module",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "dev": "vite",
 | 
			
		||||
    "dev:public": "vite --host 0.0.0.0",
 | 
			
		||||
    "build": "vite build",
 | 
			
		||||
    "build:github": "vite build --base=/chatgpt-web/",
 | 
			
		||||
    "preview": "vite preview",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue