cpolarBack / Dockerfile
BOSS
修复
2b441eb
raw
history blame contribute delete
370 Bytes
# Dockerfile
# Use official Python slim image
FROM python:3.11-slim
# set working dir
WORKDIR /app
# copy files
COPY . /app
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# expose default HF port (Spaces usually provide PORT env var)
ENV PORT=7860
# start the server
CMD ["/bin/sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]