Spaces:
Running
Running
Download Dockerfile from nishchandel/deepdefend-api: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/nishchandel/deepdefend-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nishchandel/deepdefend-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nishchandel/deepdefend-api/resolve/main/Dockerfile
465 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgomp1 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p uploads models/video_model models/audio_model | |
| RUN python models/download_model.py | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |