Files
TicketingSystem/server/Dockerfile
josh 3dce53f1dc
Some checks failed
Build & Push / Build Server (push) Successful in 50s
Build & Push / Build Client (push) Has been cancelled
Install openssl in server runtime image
Prisma's schema engine requires libssl on Alpine.
Without it, migrate deploy fails with a JSON parse error
wrapping an ELF load failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 19:58:41 -04:00

17 lines
371 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npx prisma generate
RUN npm run build
FROM node:22-alpine
RUN apk add --no-cache openssl
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/prisma ./prisma
COPY package*.json ./
CMD ["npm", "run", "start:prod"]