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:
|
||||
build:
|
||||
dockerfile: "dockerfile"
|
||||
target: "dev"
|
||||
target: "prod"
|
||||
ports:
|
||||
- "6969:6969"
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -24,4 +24,5 @@ from base as prod
|
|||
copy ./docs /app/docs
|
||||
run npm install --omit=dev
|
||||
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