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 diff --git a/src/server.rs b/src/server.rs index 6ad91ee6..48381d5d 100644 --- a/src/server.rs +++ b/src/server.rs @@ -292,7 +292,7 @@ async fn do_control_channel_handshake( None => { conn.write_all(&bincode::serialize(&Ack::ServiceNotExist).unwrap()) .await?; - bail!("No such a service {}", hex::encode(&service_digest)); + bail!("No such a service {}", hex::encode(service_digest)); } } .to_owned();