Navya-Sree commited on
Commit
688367a
·
verified ·
1 Parent(s): 42da523

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -4,11 +4,16 @@ WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var/lib/apt/lists/*
6
 
7
- # Install the build tools first
8
- RUN pip3 install --upgrade pip setuptools wheel
 
 
 
 
9
 
10
- COPY requirements.txt ./
11
- COPY src/ ./src/
 
12
 
13
  RUN pip3 install -r requirements.txt
14
 
 
4
 
5
  RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var/lib/apt/lists/*
6
 
7
+ # 1. Install system dependencies (EXCLUDING rustc and cargo)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ curl \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
+ # 2. Install the latest stable Rust using the official rustup script
15
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
16
+ ENV PATH="/root/.cargo/bin:${PATH}"
17
 
18
  RUN pip3 install -r requirements.txt
19