fix: update Dockerfile (#201)

This commit is contained in:
Yujia Qiao 2022-11-04 22:39:48 +08:00 committed by GitHub
parent 8fb9304549
commit bf842b43d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -292,7 +292,7 @@ async fn do_control_channel_handshake<T: 'static + Transport>(
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();