diff --git a/docker/build.dockerfile b/docker/build.dockerfile index 893a3a2..77f37b3 100644 --- a/docker/build.dockerfile +++ b/docker/build.dockerfile @@ -1,20 +1,12 @@ -FROM lukemathwalker/cargo-chef:latest-rust-slim-buster AS chef +FROM rust:bullseye AS builder + WORKDIR /app -FROM chef AS planner COPY . . -RUN cargo chef prepare --recipe-path recipe.json -FROM chef AS builder -RUN apt-get update \ - && apt-get install -y pkg-config libssl-dev \ - && rm -rf /var/lib/apt/lists/* - -COPY --from=planner /app/recipe.json recipe.json -RUN cargo chef cook --release --recipe-path recipe.json -COPY . . RUN cargo build --release --bin book_bot + FROM debian:bullseye-slim RUN apt-get update \