Files
compor-academy/Dockerfile.api
Cauê Faleiros 701788ea08
Some checks failed
CI / Validate frontend and API (push) Failing after 7m27s
first commit
2026-08-31 12:38:34 -03:00

14 lines
247 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 start:api"]