NuHTC / Dockerfile
3v324v23's picture
add requirement.txt
4d0d6db
Raw
History Blame Contribute Delete
518 Bytes
# Hugging Face Space: copy this file and app.py to your Space repo root, or build with:
# docker build -f hf_space/Dockerfile -t nuhtc-space hf_space
FROM ghcr.io/boyden/nuhtc:latest
# Base NuHTC image uses ENTRYPOINT ["/bin/bash"]; Spaces need a normal PID 1 process.
ENTRYPOINT []
WORKDIR /workspace
COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py /workspace/app.py
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]