Add things for prod build docker: still not complete

This commit is contained in:
ShootingStar91
2024-03-13 10:06:10 +02:00
parent 00dfd0d9ad
commit 68ef81a71d
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ services:
ports:
- 5173:5173
command: >
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
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
@@ -16,4 +16,4 @@ services:
ports:
- 4000:4000
command: >
sh -c "cd /usr/src/app && npm ci && npm run dev"
sh -c "cd /usr/src/app && npm ci && npx tsc && npm run start"