Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=on \ | |
| PIP_NO_CACHE_DIR=on | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libopenblas-dev \ | |
| liblapack-dev \ | |
| libgomp1 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /workspace | |
| COPY requirements.txt ./requirements.txt | |
| RUN pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt \ | |
| && python -c "import gradio; print('gradio', gradio.__version__)" | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |