From dd6e3c0f4a6baa014cf10a6a15d64b4c229182d9 Mon Sep 17 00:00:00 2001 From: Delta1925 Date: Mon, 17 Apr 2023 23:26:13 +0200 Subject: [PATCH] Explain why openssl is static --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index c015f12..c001b42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN apk add --no-cache openssl-dev openssl-libs-static musl-dev # This will build all dependencies and store them in docker's cache. # This way, it won't be necessary to recompile everything everytime +# OPENSSL_STATIC is required, see: https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172 and https://users.rust-lang.org/t/how-to-link-openssl-statically/14912 COPY backend/Cargo.toml . COPY backend/Cargo.lock . RUN echo '[[bin]]' >> Cargo.toml && \