Skip to content

Commit 8a367be

Browse files
authored
chore: openssl (#182)
1 parent 45ef454 commit 8a367be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
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
6+
RUN apk add --no-cache libc6-compat openssl1.1-compat
77
WORKDIR /app
88

99
COPY package.json pnpm-lock.yaml* ./
@@ -23,6 +23,9 @@ WORKDIR /app
2323

2424
ENV NODE_ENV production
2525

26+
# Install OpenSSL for Prisma in production
27+
RUN apk add --no-cache openssl1.1-compat
28+
2629
RUN addgroup --system --gid 1001 nodejs
2730
RUN adduser --system --uid 1001 nextjs
2831

0 commit comments

Comments
 (0)