Files
ThaMunsta 84aa69884d
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m21s
revert 0e7c9dd890
revert experimental smaller docker image
2026-03-20 02:23:15 +00:00

24 lines
478 B
Docker

FROM node:20-alpine
WORKDIR /app
# Required for Prisma on Alpine
RUN apk add --no-cache openssl
# Install all deps (including devDeps for tsx worker runtime + build tooling)
COPY package*.json ./
COPY prisma ./prisma
RUN npm ci
# Copy source
COPY . .
# Generate Prisma client and build Next.js (postinstall handles prisma generate)
RUN npm run build
ENV NODE_ENV=production
EXPOSE 3000
# Default: run web server. Worker container overrides this CMD.
CMD ["npm", "start"]