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