# Stage 1: Build with dependencies FROM python:3.10-bookworm # Set the working directory WORKDIR /usr/src/app RUN pip install uv==0.4.28 # Copy the requirements file and install the dependencies COPY requirements.txt . # Install the dependencies RUN export PYTHON=$(which python) && \ uv pip install -r ./requirements.txt --python $PYTHON # Copy the application code COPY . . # Expose the port for the application EXPOSE 7860 ENV GRADIO_SERVER_NAME="0.0.0.0" # Run the application CMD ["python", "app.py"]