FROM python:3.9-slim # Set the working directory WORKDIR /app # Copy all files into the container COPY . /app # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the required port EXPOSE 7860 # Run the app CMD ["python", "app.py"]