Skip to content

The open alternative to Salesforce, designed for AI.

fix(docker): upgrade Alpine system OpenSSL libs to patched 3.5.7-r0 (#21399)

Charles Bochet402e4b6a78e6
diff --git a/packages/twenty-docker/twenty/Dockerfile b/packages/twenty-docker/twenty/Dockerfile
index dfd5748b45a..ed38eded0c3 100644
--- a/packages/twenty-docker/twenty/Dockerfile
+++ b/packages/twenty-docker/twenty/Dockerfile
@@ -88,9 +88,14 @@ RUN if [ -d /app/packages/twenty-front/build ]; then \
FROM node:24.16.0-alpine3.23@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14 AS twenty-server
+# Force the patched Alpine OpenSSL libs (base bakes 3.5.6-r0; repo ships
+# 3.5.7-r0). Node bundles its own OpenSSL, but psql/curl link these system
+# libs, so the upgrade hardens runtime TLS and clears the scanner.
RUN apk add --no-cache \
'curl>=8.19.0-r0' \
'nghttp2-libs>=1.69.0-r0' \
+ 'libcrypto3>=3.5.7-r0' \
+ 'libssl3>=3.5.7-r0' \
'postgresql18-client>=18.4-r0' \
jq
@@ -213,9 +218,13 @@ RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \
&& tar -C / -Jxpf /tmp/s6-overlay-arch.tar.xz \
&& rm /tmp/s6-overlay-*.tar.xz
+# See twenty-server above: patched Alpine OpenSSL libs (psql/curl/redis link
+# these system libs; Node bundles its own).
RUN apk add --no-cache \
postgresql18 postgresql18-contrib \
redis \
+ 'libcrypto3>=3.5.7-r0' \
+ 'libssl3>=3.5.7-r0' \
curl jq su-exec
# Workspace root config