# Use an official Python runtime as a parent image FROM python:3.10-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Set work directory WORKDIR /app # Install dependencies COPY requirements.txt /app/ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy the rest of the application COPY . /app/ # Copy .env file # COPY .env /app/.env # Expose port for Gradio EXPOSE 7860 # Run the application CMD ["python", "app.py"]