# Use the official Python 3.11 image from Docker Hub FROM python:3.11-slim # Install git in the container RUN apt-get update && apt-get install -y git ARG GITHUB_TOKEN RUN --mount=type=secret,id=git_link,mode=0444,required=true \ git clone $(cat /run/secrets/git_link) /app # Clone your private GitHub repository # RUN git clone $(cat /run/secrets/git_link) /app # Set the working directory in the container WORKDIR /app # Install Python dependencies RUN pip install -r requirements.txt # Expose the port the app runs on EXPOSE 7860 ENV GRADIO_SERVER_NAME="0.0.0.0" # Command to run the app CMD ["python", "app_up_pal_demo.py"]