muk42 commited on
Commit
3c13f2c
·
1 Parent(s): c45efac
Files changed (1) hide show
  1. Dockerfile +5 -20
Dockerfile CHANGED
@@ -1,28 +1,13 @@
1
- # Use Python 3.10 based on Debian Bookworm (older, stable, and has libgl1-mesa-glx)
2
- FROM python:3.10-bookworm
3
 
4
- # Set working directory
5
- WORKDIR /home/user/app
6
 
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- git \
10
- git-lfs \
11
- ffmpeg \
12
- libsm6 \
13
- libxext6 \
14
- cmake \
15
- rsync \
16
- libgl1-mesa-glx \
17
- && rm -rf /var/lib/apt/lists/* \
18
- && git lfs install
19
-
20
- # Install Python dependencies (if you have requirements.txt)
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
- # Copy application code
25
  COPY . .
26
 
27
- # Run the Gradio app
28
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
 
2
 
3
+ WORKDIR /app
 
4
 
5
+ # Install pip dependencies
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy app code
10
  COPY . .
11
 
12
+ # Launch Gradio on HF Space
13
  CMD ["python", "app.py"]