diff --git a/Dockerfile b/Dockerfile index 8aa1740..f133ac5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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