From f8c17487bd67c30f45ea55113353d15a4dfe52ef Mon Sep 17 00:00:00 2001 From: Matthieu Guegan Date: Thu, 16 May 2024 09:55:04 +0200 Subject: [PATCH] Support dynamically-linked and/or native musl targets See https://github.com/rust-lang/rust/pull/40113#issuecomment-323193341 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55b7eff..b9ffd53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,13 +15,13 @@ FROM rust:1.76-alpine as backend WORKDIR /tmp RUN apk add --no-cache libc-dev openssl-dev alpine-sdk COPY ./packages/backend ./ -RUN cargo build --release +RUN RUSTFLAGS="-Ctarget-feature=-crt-static" cargo build --release # RUNNER FROM alpine:3.19 WORKDIR /app -RUN apk add --no-cache curl +RUN apk add --no-cache curl libgcc COPY --from=backend /tmp/target/release/cryptgeon . COPY --from=client /tmp/packages/frontend/build ./frontend ENV FRONTEND_PATH="./frontend"