blob: a545eb15a36d6d890c4fc03d88032938289993b3 (
plain) (
tree)
|
|
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" ]
|