chore: fix openssl

This commit is contained in:
Danny
2025-07-10 00:21:53 -07:00
parent 8a367be09d
commit c59e41429b

View File

@ -3,7 +3,7 @@ FROM node:18-alpine AS base
# Install dependencies only when needed # Install dependencies only when needed
FROM base AS deps FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat openssl1.1-compat RUN apk add --no-cache libc6-compat openssl openssl-dev
WORKDIR /app WORKDIR /app
COPY package.json pnpm-lock.yaml* ./ COPY package.json pnpm-lock.yaml* ./
@ -24,7 +24,7 @@ WORKDIR /app
ENV NODE_ENV production ENV NODE_ENV production
# Install OpenSSL for Prisma in production # Install OpenSSL for Prisma in production
RUN apk add --no-cache openssl1.1-compat RUN apk add --no-cache openssl
RUN addgroup --system --gid 1001 nodejs RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs