aaditya commited on
Commit
d189ad2
·
verified ·
1 Parent(s): 60b3fb3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ PIP_NO_CACHE_DIR=1 \
5
+ PYTHONUNBUFFERED=1
6
+
7
+ # System deps (note: libgl1 replaces libgl1-mesa-glx on Debian)
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ git git-lfs ffmpeg \
10
+ libgl1 libsm6 libxext6 libxrender1 libglib2.0-0 \
11
+ build-essential \
12
+ && rm -rf /var/lib/apt/lists/* \
13
+ && git lfs install
14
+
15
+ WORKDIR /app
16
+ COPY . /app
17
+
18
+ # Python deps
19
+ RUN python -m pip install --upgrade pip && \
20
+ pip install -r requirements.txt
21
+
22
+ # Gradio/Spaces: bind to the port Hugging Face provides
23
+ ENV PORT=7860
24
+ CMD ["python", "app.py"]