Skip to content

Commit

Permalink
fix(api): update Dockerfile entrypoint to run dotenvcreate before sta…
Browse files Browse the repository at this point in the history
…rting the application
  • Loading branch information
merrcury committed Dec 30, 2024
1 parent 745bbbe commit 3aecbe3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,4 @@ RUN --mount=type=cache,id=pnpm-store-api,target=/root/.pnpm-store\
ENV NEW_RELIC_NO_CONFIG_FILE=true

WORKDIR /usr/src/app/apps/api
ENTRYPOINT [ "node", "dist/dotenvcreate.mjs", "novu/api" ]
CMD [ "pm2-runtime","start", "dist/main.js" ]
ENTRYPOINT [ "sh", "-c", "node dist/dotenvcreate.mjs novu/api && pm2-runtime start dist/main.js" ]

0 comments on commit 3aecbe3

Please sign in to comment.