AvtnshM commited on
Commit
f3e427f
·
verified ·
1 Parent(s): 54a1269

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal Dockerfile for HF Spaces - avoids libgl1-mesa-glx
2
+ FROM python:3.10-slim
3
+
4
+ WORKDIR /home/user/app
5
+
6
+ # Install small set of system deps commonly needed (no libgl1-mesa-glx)
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ build-essential \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Copy app files
18
+ COPY . /home/user/app
19
+
20
+ # Install Python deps
21
+ COPY requirements.txt /tmp/requirements.txt
22
+ RUN python -m pip install --upgrade pip && \
23
+ pip install --no-cache-dir -r /tmp/requirements.txt
24
+
25
+ # Expose port and run
26
+ ENV PORT 7860
27
+ EXPOSE 7860
28
+ CMD ["python", "app.py"]