Fix: usar openssl ao invés de openssl1.1-compat no Alpine 3.22

This commit is contained in:
Erik
2025-11-26 14:28:45 -03:00
parent 86a23785da
commit 7d10821f7a

View File

@@ -1,9 +1,11 @@
# Multi-stage build for Next.js application
FROM node:20-alpine AS base
# Install OpenSSL compatibility
RUN apk add --no-cache libc6-compat openssl
# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Copy package files
@@ -30,9 +32,6 @@ WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
# Install OpenSSL for Prisma
RUN apk add --no-cache openssl1.1-compat
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs