From 7f13e5547279591f73e9af2f155d945d7686a611 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Nov 2024 09:10:53 +0300 Subject: [PATCH] slim-buster3 --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47836b0..32205c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 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 RUN uname -a @@ -9,7 +9,8 @@ RUN cat /etc/os-release RUN apt-get update -y && \ apt-get install -y git pkg-config make g++ libssl-dev wget \ 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 RUN USER=root cargo new --bin quoter @@ -33,7 +34,7 @@ COPY ./src ./src RUN cargo build --release # Use a minimal runtime image for the final stage -FROM debian:buster-slim +FROM debian:slim ENV RUST_BACKTRACE=full ENV RUST_LOG=warn