slim-buster3

This commit is contained in:
Untone 2024-11-13 09:10:53 +03:00
parent 956468b0c8
commit 7f13e55472

View File

@ -1,5 +1,5 @@
# Use a specific Rust version that is compatible with your dependencies # Use a specific Rust version that is compatible with your dependencies
FROM rust:1.81-slim-buster AS build FROM rust:slim-buster AS build
# Print system information for debugging # Print system information for debugging
RUN uname -a RUN uname -a
@ -9,7 +9,8 @@ RUN cat /etc/os-release
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get install -y git pkg-config make g++ libssl-dev wget \ apt-get install -y git pkg-config make g++ libssl-dev wget \
libheif-dev libtiff-dev && \ libheif-dev libtiff-dev && \
rustup target add x86_64-unknown-linux-gnu rustup target add x86_64-unknown-linux-gnu && \
rustup select nightly
# Create a new Rust binary project # Create a new Rust binary project
RUN USER=root cargo new --bin quoter RUN USER=root cargo new --bin quoter
@ -33,7 +34,7 @@ COPY ./src ./src
RUN cargo build --release RUN cargo build --release
# Use a minimal runtime image for the final stage # Use a minimal runtime image for the final stage
FROM debian:buster-slim FROM debian:slim
ENV RUST_BACKTRACE=full ENV RUST_BACKTRACE=full
ENV RUST_LOG=warn ENV RUST_LOG=warn