💚 Fix dockerfile missing build-base

This commit is contained in:
LittleSheep 2024-02-13 21:03:33 +08:00
parent 804108a209
commit ed9434b85a

View File

@ -1,11 +1,11 @@
# Building Backend # Building Backend
FROM rust:alpine as roadsign-server FROM rust:alpine as roadsign-server
RUN apk add nodejs npm RUN apk add libressl-dev build-base
WORKDIR /source WORKDIR /source
COPY . . COPY . .
RUN apk add libressl-dev ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN cargo build --release RUN cargo build --release
# Runtime # Runtime