From 04d8aceac1fe350a55228926aeb7171910ca7b6b Mon Sep 17 00:00:00 2001 From: LucifersCircle Date: Fri, 29 Nov 2024 02:53:24 -0800 Subject: [PATCH] Update Dockerfile try new version --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 227d32c..487f737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM rust:latest +FROM rust:1.71.0-alpine -# Install git and other necessary dependencies using apk (Alpine's package manager) +# Install git and other necessary dependencies using apk RUN apk update && apk add --no-cache git # Set the working directory to /build @@ -12,9 +12,6 @@ RUN git clone https://github.com/LucifersCircle/redlib.git /build # Checkout the main branch RUN cd /build && git checkout main -# Add the necessary build steps (e.g., cargo build) -# Example: RUN cargo build --release - # Set the final image's default user RUN adduser --home /nonexistent --no-create-home --disabled-password redlib USER redlib