Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM docker.io/library/python:3.10-slim
|
| 2 |
+
RUN apt-get update && apt-get install -y \
|
| 3 |
+
git \
|
| 4 |
+
git-lfs \
|
| 5 |
+
ffmpeg \
|
| 6 |
+
libsm6 \
|
| 7 |
+
libxext6 \
|
| 8 |
+
cmake \
|
| 9 |
+
rsync \
|
| 10 |
+
libgl1 \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 12 |
+
&& git lfs install
|
| 13 |
+
|
| 14 |
+
WORKDIR /app
|
| 15 |
+
|
| 16 |
+
RUN pip install --no-cache-dir pip -U && \
|
| 17 |
+
pip install --no-cache-dir \
|
| 18 |
+
datasets \
|
| 19 |
+
"huggingface-hub>=0.30" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1"
|
| 20 |
+
|
| 21 |
+
COPY requirements.txt .
|
| 22 |
+
RUN pip install --no-cache-dir -r requirements.txt \
|
| 23 |
+
gradio[oauth]==3.5 \
|
| 24 |
+
"uvicorn>=0.14.0" "websockets>=10.4" \
|
| 25 |
+
spaces httpx==0.24.1 "fastapi<0.113.0"
|
| 26 |
+
|
| 27 |
+
COPY . .
|
| 28 |
+
CMD ["python", "app.py"]
|