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