From 634d43840c8aa8deb1bca38425220f6460e92714 Mon Sep 17 00:00:00 2001 From: Frank Spierings Date: Mon, 16 Mar 2026 11:46:18 +0100 Subject: [PATCH] Modify Dockerfile for static OpenSSL Updated Dockerfile to include static OpenSSL libraries, otherwise the linker fails. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67f4d6e..8ec6498 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM rust:alpine as builder +FROM rust:alpine AS builder -RUN apk add --no-cache build-base openssl-dev +RUN apk add --no-cache build-base openssl-dev openssl-libs-static WORKDIR /app/x8 COPY Cargo.toml Cargo.lock ./ @@ -8,6 +8,6 @@ COPY src/ src/ RUN cargo build --release -FROM alpine:3.12 +FROM alpine COPY --from=builder /app/x8/target/release/x8 /usr/local/bin/x8 ENTRYPOINT [ "x8" ]