summaryrefslogblamecommitdiff
path: root/Dockerfile
blob: a545eb15a36d6d890c4fc03d88032938289993b3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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" ]