Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ WORKDIR /app
RUN apk add --no-cache python3 make g++
RUN addgroup -S appgroup && adduser -S appuser -G appgroup

# Install production deps (includes prisma + better-sqlite3, rebuilt for this image)
# Install production deps (includes better-sqlite3, rebuilt for this image)
# prisma and @prisma/client are devDependencies but are required at runtime
# for the runner stage to generate the Prisma client.
COPY package*.json ./
COPY prisma ./prisma
RUN npm ci --omit=dev
RUN npm ci --omit=dev && npm install --no-save prisma @prisma/client

# Re-generate Prisma client in runner stage
RUN node_modules/.bin/prisma generate
Expand Down