Spaces:
Sleeping
Sleeping
FROM python:3.11-slim | |
ENV PYTHONDONTWRITEBYTECODE=1 \ | |
PYTHONUNBUFFERED=1 \ | |
PIP_DISABLE_PIP_VERSION_CHECK=on \ | |
PIP_NO_CACHE_DIR=on | |
# BLAS/LAPACK(Prophetを後で入れるなら十分) | |
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__)" | |
# 以降の全ファイルをコピー(ui.py / app/ など) | |
COPY . . | |
EXPOSE 7860 | |
CMD ["python", "ui.py"] | |