node:20-alpine OpenSsl deployment issue
Hi all! I have been having the openssl issue with my node:20-alpine Dockerfile. Here is the Dockerfile:
2 Replies
Following along the other questions lead me to try different versions for node:20-alpine, I tried:
-node:18-slim
-node:18-alpine3.20
-node:18-alpine
also tried adding this to my Dockerfile, still no luck:
RUN ln -s /usr/lib/libssl.so.3 /lib/libssl.so.3
after trying these now I can't even reproduce the same issue (tried reverting the version back to node:20-alpine), now my deployment says:
FATAL: password authentication failed for user "postgres"
DETAIL: Connection matched file "/pgsql/data/pg_hba.conf" line 81: "hostnossl all all all md5"
any help would be appreciated
Update:
Downgraded my prisma version from "@prisma/client": "^5.16.0" to "@prisma/client": "5.12.1" this reproduced the openssl error back again
then i changed "FROM node:20-alpine" to "FROM node:18-alpine3.20" and it works fine now
You can also try
FROM node:20-alpine3.20
and that should resolve your issue as well
If you want to stay on Node 20