diff --git a/docker-compose.yaml b/docker-compose.yaml index 54093be..b739e91 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,7 @@ services: api: build: dockerfile: "dockerfile" - target: "dev" + target: "prod" ports: - "6969:6969" environment: diff --git a/dockerfile b/dockerfile index a864a87..aea2336 100644 --- a/dockerfile +++ b/dockerfile @@ -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" ] \ No newline at end of file +env NODE_ENV=production +cmd [ "node", "dist/main.js" ] \ No newline at end of file