Skip to content

Commit c59e414

Browse files
committed
chore: fix openssl
1 parent 8a367be commit c59e414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:18-alpine AS base
33
# Install dependencies only when needed
44
FROM base AS deps
55
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
6-
RUN apk add --no-cache libc6-compat openssl1.1-compat
6+
RUN apk add --no-cache libc6-compat openssl openssl-dev
77
WORKDIR /app
88

99
COPY package.json pnpm-lock.yaml* ./
@@ -24,7 +24,7 @@ WORKDIR /app
2424
ENV NODE_ENV production
2525

2626
# Install OpenSSL for Prisma in production
27-
RUN apk add --no-cache openssl1.1-compat
27+
RUN apk add --no-cache openssl
2828

2929
RUN addgroup --system --gid 1001 nodejs
3030
RUN adduser --system --uid 1001 nextjs

0 commit comments

Comments
 (0)