server / Dockerfile
YoAkatsuki's picture
Upload 5 files
0efdc4a verified
Raw
History Blame Contribute Delete
413 Bytes
# 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"]