From 1386316b37bc19f2cf34c34861ec5862df0bd9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dybiec?= Date: Mon, 26 Dec 2022 00:22:30 +0000 Subject: Add dockerfile and build/publish step for it --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a545eb1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM docker.io/rust:slim-bullseye as builder +WORKDIR /app +RUN apt update && apt install libssl-dev pkg-config -y +RUN cargo install cargo-prefetch +RUN cargo prefetch +COPY Cargo* /app/ +COPY src /app/src +RUN cargo build --release +FROM docker.io/debian:bullseye-slim +COPY --from=builder /app/target/release/vavbot /vavbot +RUN apt update && apt install openssl ca-certificates -y +CMD [ "/vavbot" ] \ No newline at end of file -- cgit v1.2.3