Spaces:
Sleeping
Sleeping
File size: 416 Bytes
849d652 a38f678 00d6e67 a38f678 31e14e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY ./app /app
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Start the FastAPI app on port 7860, the default port expected by Spaces
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |