Spaces:
Runtime error
Runtime error
FROM python:3.10 | |
# Set work directory | |
WORKDIR /app | |
# Copy all files into container | |
COPY . . | |
# Install requirements | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# Expose port (required for Spaces) | |
EXPOSE 7860 | |
# Command to run the app | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |