diff --git a/Dockerfile b/Dockerfile index 261a5910e..8521e893b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,4 +49,4 @@ FROM node:16-alpine COPY --from=builder /ghostfolio/dist/apps /ghostfolio/apps WORKDIR /ghostfolio/apps/api EXPOSE 3333 -CMD [ "node", "main" ] +CMD [ "yarn", "start:prod" ] diff --git a/package.json b/package.json index 8b9c89be6..ddcf09f26 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "replace-placeholders-in-build": "node ./replace.build.js", "start": "node dist/apps/api/main", "start:client": "ng serve client --configuration=development-en --hmr -o", - "start:prod": "node apps/api/main", + "start:prod": "yarn database:migrate && yarn database:seed && node main", "start:server": "nx serve api --watch", "start:storybook": "nx run ui:storybook", "test": "nx test",