Files
compor-academy/Dockerfile.api
Cauê Faleiros 006281f062
All checks were successful
CI / Validate frontend and API (push) Successful in 37s
CI / Build and publish Docker images (push) Successful in 15s
fix: run API as container primary process
2026-09-01 11:45:38 -03:00

14 lines
308 B
Docker

FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --include=dev
COPY server ./server
COPY constants.ts types.ts ./
ENV APP_ENV=production
EXPOSE 3001
CMD ["sh", "-c", "npm run db:migrate && npm run db:bootstrap-admin && exec ./node_modules/.bin/tsx server/src/index.ts"]