Small enhancements

This commit is contained in:
Niek van der Maas 2023-03-20 14:08:40 +01:00
parent 787f780863
commit 096af3e766
4 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,8 @@
FROM node:18
FROM node:18-alpine
ADD . /work
WORKDIR /work
RUN npm ci
CMD ["bash"]
CMD ["npm", "run", "dev:public"]

View File

@ -21,7 +21,7 @@ npm ci
npm run dev # or: npm run build
```
## Use with docker compose
## Use with Docker compose
```bash
docker compose up -d

View File

@ -3,7 +3,6 @@ version: "3"
services:
chatgpt_web:
container_name: chatgpt_web
command: npm run deploy
restart: always
ports:
- 5173:5173

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"deploy": "vite --host 0.0.0.0",
"dev:public": "vite --host 0.0.0.0",
"build": "vite build",
"build:github": "vite build --base=/chatgpt-web/",
"preview": "vite preview",