Spaces:
Running
Running
Download Dockerfile from ignatius/curatorbot: direct link, hf CLI and curl.
- Browser
- Download file 784 Bytes
-
https://huggingface.co/spaces/ignatius/curatorbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ignatius/curatorbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ignatius/curatorbot/resolve/main/Dockerfile
784 Bytes
| # CuratorBot demo for a Hugging Face Docker Space (listens on 7860). | |
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Hugging Face Spaces run as user 1000 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH PYTHONUNBUFFERED=1 \ | |
| HF_HOME=/home/user/.cache/huggingface | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt \ | |
| && python -m spacy download en_core_web_sm | |
| COPY --chown=user . . | |
| RUN pip install --no-cache-dir --user --no-deps -e . | |
| ENV CURATORBOT_DATA_DIR=/home/user/app/data/interviews | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.server:app", "--host", "0.0.0.0", "--port", "7860"] | |