Skip to content

Commit

Permalink
fix: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rapiz1 committed Nov 4, 2022
1 parent 8fb9304 commit f6aa7da
Showing 1 changed file with 4 additions and 3 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

0 comments on commit f6aa7da

Please sign in to comment.