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 ADD . /work
WORKDIR /work WORKDIR /work
RUN npm ci 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 npm run dev # or: npm run build
``` ```
## Use with docker compose ## Use with Docker compose
```bash ```bash
docker compose up -d docker compose up -d

View File

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

View File

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"deploy": "vite --host 0.0.0.0", "dev:public": "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",