FROM python:3.8-slim # Suppress TensorFlow warnings ENV TF_CPP_MIN_LOG_LEVEL=3 ENV TF_ENABLE_ONEDNN_OPTS=0 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 7860 CMD ["python", "app.py"]