pkd-sentiment-api / Dockerfile
hadangvu's picture
Upload folder using huggingface_hub
29e590e verified
raw
history blame contribute delete
322 Bytes
FROM python:3.10-slim
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app
EXPOSE 7860
# Start FastAPI on 7860 (public port HF requires)
# Gradio calls FastAPI internally on the same container
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]