protohacke-rs/Dockerfile
2024-03-19 12:10:56 +00:00

8 lines
244 B
Docker

FROM rust:1.76
WORKDIR /code
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=./target \
cargo build --release && cp target/release/protohacke-rs /bin/protohacke-rs
CMD ["/bin/protohacke-rs"]