Adding (installing) openssl in Dockerfile and changing node:20-alpine to node:18-slim fixed it for me.
node:20-alpine
node:18-slim
# Install openssl RUN apt-get update RUN apt-get install -y openssl