From ed9434b85a991dcd88a9578b2f767944ea52c51b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 13 Feb 2024 21:03:33 +0800 Subject: [PATCH] :green_heart: Fix dockerfile missing build-base --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d6e7a7..39e1fa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # Building Backend FROM rust:alpine as roadsign-server -RUN apk add nodejs npm +RUN apk add libressl-dev build-base WORKDIR /source COPY . . -RUN apk add libressl-dev +ENV RUSTFLAGS="-C target-feature=-crt-static" RUN cargo build --release # Runtime