pubsub-client/Dockerfile

15 lines
241 B
Docker
Raw Normal View History

2022-07-25 02:31:25 +00:00
FROM rust as builder
WORKDIR /opt/pubsub-client
COPY . .
RUN apt update
RUN apt install -y cmake
RUN cargo build --release
FROM rust
WORKDIR /opt/
COPY --from=builder /opt/pubsub-client/target/release/client .
ENTRYPOINT ["/opt/client"]