Remove cargo-chef

This commit is contained in:
2022-10-26 22:14:35 +02:00
parent de263cdb77
commit e62821754d

View File

@@ -1,20 +1,12 @@
FROM lukemathwalker/cargo-chef:latest-rust-slim-buster AS chef FROM rust:bullseye AS builder
WORKDIR /app WORKDIR /app
FROM chef AS planner
COPY . . 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 RUN cargo build --release --bin book_bot
FROM debian:bullseye-slim FROM debian:bullseye-slim
RUN apt-get update \ RUN apt-get update \