FROM python:3.11-slim WORKDIR /app # Install dependencies first to leverage Docker cache COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . . # Expose the port the app runs on EXPOSE 3000 # Start the Flask application CMD ["python", "app.py"]