From f6aa7da37eed49c3a7dcccc8b07d7c316a0e0c7c Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Wed, 2 Nov 2022 19:47:34 +0800 Subject: [PATCH] fix: update Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 433f5891..636858e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM ekidd/rust-musl-builder:latest as builder +FROM rust:alpine as builder +RUN apk add --no-cache musl-dev openssl openssl-dev pkgconfig WORKDIR /home/rust/src COPY . . -RUN cargo build --locked --release +RUN cargo build --locked --release --features client,server,noise,hot-reload RUN mkdir -p build-out/ -RUN cp target/x86_64-unknown-linux-musl/release/rathole build-out/ +RUN cp target/release/rathole build-out/ FROM scratch WORKDIR /app