From 1c8de2f33196503efd6c5af250b745511faba3b4 Mon Sep 17 00:00:00 2001 From: Aryan Bhosale <36108149+aryanbhosale@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:51:44 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67baf82..403c53a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,14 @@ # Use an official Python runtime as a parent image -FROM python:3.11-slim +FROM python:3.11 + +# Install necessary build tools and curl +RUN apt-get update && apt-get install -y build-essential curl + +# Install Rust using rustup +RUN curl https://sh.rustup.rs -sSf | sh -s -- -y + +# Add Rust to PATH +ENV PATH="/root/.cargo/bin:${PATH}" # Set the working directory in the container WORKDIR /app @@ -7,6 +16,9 @@ WORKDIR /app # Copy the project files to the container COPY . /app +# Upgrade pip and setuptools +RUN pip install --upgrade pip setuptools wheel + # Install the project and its dependencies RUN pip install .