ToxicTagger_serveAPI / Dockerfile
Subi003's picture
Upload folder using huggingface_hub
9614a2e verified
raw
history blame
342 Bytes
FROM python:3.11.11-slim-bookworm
RUN apt-get update && apt-get upgrade -y
COPY . /app
WORKDIR /app
RUN pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install -r model/requirements.txt
EXPOSE 7860
CMD ["uvicorn", "main.model_inference:inference_api", "--host", "0.0.0.0", "--port", "7860"]