FROM python:3.13.5-slim WORKDIR /app RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var/lib/apt/lists/* # 1. Install system dependencies (EXCLUDING rustc and cargo) RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* # 2. Install the latest stable Rust using the official rustup script RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" RUN pip3 install -r requirements.txt # The rest of the Dockerfile for running the app