slim-buster3
This commit is contained in:
parent
956468b0c8
commit
7f13e55472
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user