FROM node:18-alpine
RUN apk add --no-cache python3 make gcc clang g++
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN corepack enable && pnpm i
COPY . .
RUN pnpm prisma generate
CMD ["pnpm", "start"]