From 2b3a81a18a2fecd0ff25d4ad35f4c9830563ba5e Mon Sep 17 00:00:00 2001 From: LucifersCircle Date: Fri, 29 Nov 2024 00:26:45 -0800 Subject: [PATCH] Update Dockerfile rust versioning --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9e46991..52f258b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM rust:1.71.0-alpine3.19 +# Use the official Rust image with Alpine base +FROM rust:alpine # Set the target architecture as an ARG ARG TARGET @@ -15,6 +16,10 @@ WORKDIR /redlib # Checkout the main branch (if needed) RUN git checkout main +# Install the desired version of Rust (if a specific version is needed) +RUN rustup install stable +RUN rustup default stable + # Build the project using Cargo (this will handle the Rust-specific build) RUN cargo build --release --target ${TARGET}