Spaces:
Sleeping
Sleeping
Download Dockerfile from jayanthbottu/DFDA: direct link, hf CLI and curl.
- Browser
- Download file 785 Bytes
-
https://huggingface.co/spaces/jayanthbottu/DFDA/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jayanthbottu/DFDA/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jayanthbottu/DFDA/resolve/main/Dockerfile
785 Bytes
| # Dockerfile - DFDA app (Python 3.11, CPU) | |
| FROM python:3.11-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| # system deps - build essentials and ffmpeg for audio | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| curl \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # copy requirements and app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN python -m pip install --upgrade pip setuptools wheel | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| # copy app code | |
| COPY . /app | |
| # ensure models dir exists | |
| RUN mkdir -p /app/models | |
| COPY Audio.pth Image.pt Video.pt ./models/ | |
| EXPOSE 8501 | |
| # streamlit entry - streamlit will run app.py | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |