# Use Python 3.13.2 base image FROM python:3.13.2 # Create a user and set environment variables RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH # Set the working directory inside the container WORKDIR $HOME/app # Copy only the necessary files from src_midterm COPY --chown=user src/ ./ # Install dependencies RUN pip install --no-cache-dir . # Set the default command to run Chainlit CMD ["chainlit", "run", "app.py", "--port", "7860", "--host", "0.0.0.0"]