abdullahtahir commited on
Commit
f2c905c
·
verified ·
1 Parent(s): ac034e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,13 +1,20 @@
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
5
  && rm -rf /var/lib/apt/lists/* \
6
  && git lfs install
7
 
8
- COPY requirements.txt .
 
 
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY . .
 
12
 
 
13
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
6
  && rm -rf /var/lib/apt/lists/* \
7
  && git lfs install
8
 
9
+ # Copy requirements first (for caching)
10
+ COPY requirements.txt /app/requirements.txt
11
+ WORKDIR /app
12
+
13
+ # Install Python dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy app files
17
+ COPY . /app
18
 
19
+ # Run your app
20
  CMD ["python", "app.py"]