ShoaibAI commited on
Commit
3beae4e
·
verified ·
1 Parent(s): 7c30ae1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,28 +1,26 @@
1
- FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  git \
5
- git-lfs \
6
  ffmpeg \
7
  libsm6 \
8
  libxext6 \
9
- cmake \
10
- rsync \
11
  libgl1 \
12
- && rm -rf /var/lib/apt/lists/* \
13
- && git lfs install
14
 
15
  WORKDIR /app
16
 
17
- # Copy requirements first for better caching
18
  COPY requirements.txt .
19
 
20
- # Install dependencies
21
  RUN pip install --no-cache-dir --upgrade pip && \
22
- pip install --no-cache-dir torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu && \
23
- pip install --no-cache-dir -r requirements.txt && \
24
- pip install --no-cache-dir gradio[oauth]==4.19.2 uvicorn websockets spaces "fastapi<0.113.0"
25
 
 
26
  COPY . .
27
 
 
28
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git \
 
6
  ffmpeg \
7
  libsm6 \
8
  libxext6 \
 
 
9
  libgl1 \
10
+ && rm -rf /var/lib/apt/lists/*
 
11
 
12
  WORKDIR /app
13
 
14
+ # Copy requirements first for caching
15
  COPY requirements.txt .
16
 
17
+ # Install Python packages
18
  RUN pip install --no-cache-dir --upgrade pip && \
19
+ pip install --no-cache-dir torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu && \
20
+ pip install --no-cache-dir -r requirements.txt
 
21
 
22
+ # Copy application
23
  COPY . .
24
 
25
+ # Run the app
26
  CMD ["python", "app.py"]