# Use a lightweight Python image FROM python:3.11-slim # Set the working directory WORKDIR /app # Copy dependencies and install them COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the application code COPY ./src/app.py . # Expose the default Chainlit port EXPOSE 8501 # Command to run the Chainlit app CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8501"]