Use serve for frontend production version

This commit is contained in:
arttu
2024-04-04 11:00:15 +03:00
parent 29635a66fa
commit 2f5b513de0
2 changed files with 19 additions and 3 deletions
+2 -3
View File
@@ -1,13 +1,12 @@
services:
now-db-frontend:
container_name: nowdb-frontend
image: node:20-alpine3.16
build:
context: frontend/
volumes:
- ./frontend/:/usr/src/app
ports:
- 5173:5173
command: >
sh -c "cd /usr/src/app && npm ci && npm run build && npm start -- --host"
now-db-backend:
container_name: nowdb-backend
image: node:20-alpine3.16