chore: openssl (#182)

This commit is contained in:
Danny Xu
2025-07-10 00:13:39 -07:00
committed by GitHub
parent 45ef454090
commit 8a367be09d

View File

@@ -3,7 +3,7 @@ FROM node:18-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# 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
RUN apk add --no-cache libc6-compat openssl1.1-compat
WORKDIR /app
COPY package.json pnpm-lock.yaml* ./
@@ -23,6 +23,9 @@ WORKDIR /app
ENV NODE_ENV production
# Install OpenSSL for Prisma in production
RUN apk add --no-cache openssl1.1-compat
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs