FROM docker.io/rust:bullseye ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse RUN apt-get update && apt-get upgrade -y # Uncomment if you need to add more build dependencies to the image: # RUN apt-get install -y RUN cargo install cargo-deb WORKDIR /app CMD ["cargo", "deb"]