RunPodRun / Dockerfile
Theflame47's picture
Update Dockerfile
e1eefef verified
raw
history blame contribute delete
368 Bytes
FROM python:3.12-slim
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copy app
COPY . .
# HF Spaces expects the service on port 7860
ENV PORT=7860 HOST=0.0.0.0
# If you need env defaults for blob path:
ENV MODEL_BLOB_PATH=/tmp/model_blob.json
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]