Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: symlink libssl on latest Alpine #318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

eatyourgreens
Copy link
Contributor

@eatyourgreens eatyourgreens commented Feb 11, 2025

symlink libssl in the runner image on Alpine 3.21, as a workaround for older Prisma clients looking for it in /lib.

This fixes an issue for me where the Prisma client errors after building and running the latest Docker image. The app runs, but won't connect to the database.

gutenberg-1  | prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
gutenberg-1  | Please manually install OpenSSL and try installing Prisma again.

symlink `libssl` in the runner image on Alpine 3.21, as a workaround for older Prisma clients looking for it in `/lib`.

This fixes an issue for me where the Prisma client errors after building and running the latest Docker image. The app runs, but won't connect to the database.

```bash
gutenberg-1  | prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
gutenberg-1  | Please manually install OpenSSL and try installing Prisma again.
```
@eatyourgreens
Copy link
Contributor Author

NB. an alternative to this PR might be to pin the Docker build to Alpine 3.20, by building from node:20-alpine3.20 in the Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant