From 17cbdf26667de27c75ac5b2776fd27fbfe52f78a Mon Sep 17 00:00:00 2001 From: Han Cen Date: Sat, 31 Dec 2022 20:36:00 +0800 Subject: [PATCH] fix(api): fix docker segfault --- docker/api/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/api/Dockerfile b/docker/api/Dockerfile index e6a1fc74..05e54545 100644 --- a/docker/api/Dockerfile +++ b/docker/api/Dockerfile @@ -1,5 +1,7 @@ FROM rust:1.65-alpine AS builder +ENV RUSTFLAGS "-C target-feature=-crt-static" + RUN apk add --no-cache musl-dev openssl-dev WORKDIR /build @@ -17,7 +19,7 @@ RUN cargo build --release FROM alpine:3.17 -RUN apk add --no-cache dumb-init +RUN apk add --no-cache dumb-init libgcc libssl1.1 WORKDIR /app