Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust toolchain to latest stable, using the minimal profile #571

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions docker/Dockerfile.requirements
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ ARG PYTHON_IMAGE=python:3.12.2-slim-bookworm
# BUILD STAGE
FROM $PYTHON_IMAGE as build

# Pinning a specific nightly version so that builds don't suddenly break if a
# "this feature is now stabilized" warning is promoted to an error or something.
# We would like to keep up with nightly if we can.
ARG RUST_VERSION=nightly-2023-02-22
ENV RUST_VERSION=${RUST_VERSION}

RUN apt-get update
RUN apt-get install -y \
build-essential \
Expand All @@ -19,8 +13,11 @@ RUN apt-get install -y \
curl

# Install Rust
ARG RUST_VERSION=stable
ENV RUST_VERSION=${RUST_VERSION}

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| bash -s -- -y --default-toolchain $RUST_VERSION
| bash -s -- -y --profile minimal --default-toolchain $RUST_VERSION
ENV PATH="/root/.cargo/bin:$PATH"

COPY requirements.txt /
Expand Down
Loading