Spaces:
Sleeping
Sleeping
File size: 413 Bytes
0efdc4a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use a stable Python base
FROM python:3.10-slim
# set working dir
WORKDIR /app
# copy files
COPY . /app
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# expose default Space port (7860 is HF default)
EXPOSE 7860
# start the app (use PORT env var set by HF - default 7860)
CMD ["sh", "-c", "uvicorn server:app --host 0.0.0.0 --port ${PORT:-7860} --proxy-headers"]
|