Spaces:
Running
Running
Download Dockerfile from WitneyWW/av-edit-human-study: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/WitneyWW/av-edit-human-study/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/WitneyWW/av-edit-human-study/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/WitneyWW/av-edit-human-study/resolve/main/Dockerfile
486 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY --chown=user . /app | |
| RUN mkdir -p /app/data /app/.hf && chown -R user:user /app/data /app/.hf | |
| USER user | |
| ENV HF_HOME=/app/.hf PYTHONUNBUFFERED=1 DATA_DIR=/app/data | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-k", "gthread", "-w", "1", "--threads", "8", "-b", "0.0.0.0:7860", "--timeout", "120", "--graceful-timeout", "30", "app:app"] | |