pubsub-client/Dockerfile

15 lines
241 B
Docker

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"]