diff --git a/backend/Dockerfile b/backend/Dockerfile index e864549..bd5d3bc 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,11 +1,11 @@ -FROM rust:latest AS builder +FROM rust:slim-bookworm AS builder COPY ./Cargo.toml ./Cargo.lock ./ RUN cargo fetch COPY ./src ./src RUN cargo build --release -FROM debian:bookworm +FROM debian:bookworm-slim RUN apt-get update && apt-get install -y libc6 COPY --from=builder target/release/backend /usr/local/bin/backend