Skip to content

Commit

Permalink
fix: manually install openssl in Dockerfile
Browse files Browse the repository at this point in the history
This prevents "Prisma failed to detect the libssl/openssl version to use"
errors. The problem is likely related to the recent upgrade to Alpine
3.21.

See: 041c7ab
See: prisma/prisma#19341 (comment)
  • Loading branch information
RafDevX committed Jan 27, 2025
1 parent 2e7f18b commit e028f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM node:18-alpine3.21 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 openssl
WORKDIR /app

# Install dependencies based on the preferred package manager
Expand Down

0 comments on commit e028f13

Please sign in to comment.