fix: run API as container primary process
All checks were successful
CI / Validate frontend and API (push) Successful in 37s
CI / Build and publish Docker images (push) Successful in 15s

This commit is contained in:
Cauê Faleiros
2026-09-01 11:45:38 -03:00
parent 7c33b7a7d3
commit 006281f062
2 changed files with 2 additions and 1 deletions

View File

@@ -10,4 +10,4 @@ COPY constants.ts types.ts ./
ENV APP_ENV=production
EXPOSE 3001
CMD ["sh", "-c", "npm run db:migrate && npm run db:bootstrap-admin && npm run start:api"]
CMD ["sh", "-c", "npm run db:migrate && npm run db:bootstrap-admin && exec ./node_modules/.bin/tsx server/src/index.ts"]