0
0
Fork 0

Fix the target and environment

This commit is contained in:
Oliver-Akins 2023-08-26 20:45:52 -06:00
parent 2d8d6f4aa0
commit 49d6536269
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ services:
api: api:
build: build:
dockerfile: "dockerfile" dockerfile: "dockerfile"
target: "dev" target: "prod"
ports: ports:
- "6969:6969" - "6969:6969"
environment: environment:

View file

@ -24,4 +24,5 @@ from base as prod
copy ./docs /app/docs copy ./docs /app/docs
run npm install --omit=dev run npm install --omit=dev
run rm -rf src tsconfig.json run rm -rf src tsconfig.json
cmd [ "NODE_ENV=production", "node", "dist/main.js" ] env NODE_ENV=production
cmd [ "node", "dist/main.js" ]