Skip to content

Commit

Permalink
fix: update Dockerfile (rapiz1#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
rapiz1 authored Nov 4, 2022
1 parent 8fb9304 commit bf842b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bf842b4

Please sign in to comment.