Spaces:
Sleeping
Sleeping
# Use an official Python runtime as a parent image | |
FROM python:3.12-slim | |
# Label the image | |
LABEL maintainer="aasher-kamal" | |
# Set working directory | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
# Expose the port | |
EXPOSE 7860 | |
# Run the application | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--reload", "--port", "7860"] | |