Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

👷 build: fix `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` error with docker image (#9422)

Zhijie He3db2a395855f
diff --git a/Dockerfile b/Dockerfile
index 1b1f0ae35f1..60611e91adc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
## Set global build ENV
-ARG NODEJS_VERSION="22"
+ARG NODEJS_VERSION="24"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
@@ -126,7 +126,7 @@ ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
- SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
+ SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876
diff --git a/Dockerfile.database b/Dockerfile.database
index 8e5dcb92cec..15a8954149c 100644
--- a/Dockerfile.database
+++ b/Dockerfile.database
@@ -1,5 +1,5 @@
## Set global build ENV
-ARG NODEJS_VERSION="22"
+ARG NODEJS_VERSION="24"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
@@ -149,7 +149,7 @@ ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
- SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
+ SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876
diff --git a/Dockerfile.pglite b/Dockerfile.pglite
index f667a3be286..66d32a0fd5d 100644
--- a/Dockerfile.pglite
+++ b/Dockerfile.pglite
@@ -1,5 +1,5 @@
## Set global build ENV
-ARG NODEJS_VERSION="22"
+ARG NODEJS_VERSION="24"
## Base image for all building stages
FROM node:${NODEJS_VERSION}-slim AS base
@@ -128,7 +128,7 @@ ENV NODE_ENV="production" \
NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
NODE_EXTRA_CA_CERTS="" \
NODE_TLS_REJECT_UNAUTHORIZED="" \
- SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
+ SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# Make the middleware rewrite through local as default
# refs: https://github.com/lobehub/lobe-chat/issues/5876