From 9fcf5246e878915aacf3e243b31ece4b15dbdd5c Mon Sep 17 00:00:00 2001 From: mazemaze Date: Thu, 18 Dec 2025 22:07:18 +0900 Subject: [PATCH] Fix Dockerfile: use Alpine 3.18 with OpenSSL 1.1 compat for Prisma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3fe0656..e6e6210 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:20-alpine AS base +FROM node:20-alpine3.18 AS base # Install dependencies only when needed FROM base AS deps -RUN apk add --no-cache libc6-compat openssl +RUN apk add --no-cache libc6-compat openssl1.1-compat WORKDIR /app # Install dependencies @@ -18,6 +18,7 @@ RUN npx prisma generate # Rebuild the source code only when needed FROM base AS builder +RUN apk add --no-cache openssl1.1-compat WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -34,6 +35,7 @@ RUN npm run build # Production image, copy all the files and run next FROM base AS runner +RUN apk add --no-cache openssl1.1-compat WORKDIR /app ENV NODE_ENV=production