Fix the target and environment
This commit is contained in:
parent
2d8d6f4aa0
commit
49d6536269
2 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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" ]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue