Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +34 -0
Dockerfile
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
git \
|
| 7 |
+
git-lfs \
|
| 8 |
+
ffmpeg \
|
| 9 |
+
libsm6 \
|
| 10 |
+
libxext6 \
|
| 11 |
+
cmake \
|
| 12 |
+
rsync \
|
| 13 |
+
libgl1 \
|
| 14 |
+
curl \
|
| 15 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 16 |
+
&& git lfs install
|
| 17 |
+
|
| 18 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 19 |
+
&& apt-get install -y nodejs \
|
| 20 |
+
&& apt-get clean
|
| 21 |
+
|
| 22 |
+
COPY requirements.txt .
|
| 23 |
+
|
| 24 |
+
RUN pip install --no-cache-dir --upgrade pip
|
| 25 |
+
|
| 26 |
+
RUN pip install --no-cache-dir -r requirements.txt \
|
| 27 |
+
gradio[oauth,mcp]==6.14.0 \
|
| 28 |
+
"uvicorn>=0.14.0" \
|
| 29 |
+
"websockets>=10.4" \
|
| 30 |
+
spaces
|
| 31 |
+
|
| 32 |
+
COPY . .
|
| 33 |
+
|
| 34 |
+
CMD ["python", "app.py"]
|