Spaces:
Runtime error
Runtime error
FROM python:3.10-slim | |
WORKDIR /app | |
COPY . /app | |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
RUN chmod +x /app/setup.sh | |
EXPOSE 7860 | |
# Run the script as part of the CMD | |
CMD ["/app/setup.sh", "&&", "uvicorn", "/app/main:app", "--host", "0.0.0.0", "--port", "7860"] | |