MaroofTechSorcerer commited on
Commit
1a8d355
·
verified ·
1 Parent(s): d8b6ea5

Update Dockerfifle

Browse files
Files changed (1) hide show
  1. Dockerfifle +5 -2
Dockerfifle CHANGED
@@ -9,9 +9,12 @@ RUN apt-get update && \
9
  # Set working directory
10
  WORKDIR /app
11
 
12
- # Copy requirements and install
 
 
 
13
  COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy app code
17
  COPY app.py .
 
9
  # Set working directory
10
  WORKDIR /app
11
 
12
+ # Pre-install large packages to reduce memory pressure
13
+ RUN pip install --no-cache-dir torch==2.0.0 torchaudio==2.0.1
14
+
15
+ # Copy requirements and install with force-reinstall
16
  COPY requirements.txt .
17
+ RUN pip install --no-cache-dir --force-reinstall -r requirements.txt
18
 
19
  # Copy app code
20
  COPY app.py .