test / Dockerfile
keertan2610's picture
Update Dockerfile
f227e93 verified
raw
history blame contribute delete
403 Bytes
# Use official Python base
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Copy requirements and install
COPY requirements.txt .
RUN pip install -r requirements.txt
ENV HF_HOME=/tmp/huggingface
# Copy app code
COPY app.py .
# Expose the port used by FastAPI
EXPOSE 7860
# HF Spaces expects the app to run on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]