curatorbot / Dockerfile
ignatius's picture
CuratorBot prototype: pipeline, hosted demo and project kit
3bf43cb
Raw History Blame Contribute Delete
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"]