Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
# your existing apt installs (ffmpeg etc.) stay
|
| 4 |
+
RUN apt-get update && apt-get install -y \
|
| 5 |
+
ffmpeg git git-lfs libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 7 |
+
&& git lfs install
|
| 8 |
+
|
| 9 |
+
RUN python -m pip install --upgrade pip setuptools wheel
|
| 10 |
+
|
| 11 |
+
COPY requirements.txt /tmp/requirements.txt
|
| 12 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
| 13 |
+
|
| 14 |
+
RUN pip install --no-cache-dir "gradio[oauth]==4.42.0" "uvicorn>=0.14.0" spaces
|
| 15 |
+
|
| 16 |
+
COPY . /app
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
CMD ["python", "app.py"]
|