Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y ffmpeg \ | |
| # ↓ 追加:日本語フォント(Noto CJK) | |
| fonts-noto-cjk \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ← 1つの ENV にまとめて指定(バックスラッシュで継続) | |
| ENV HOME=/app \ | |
| STREAMLIT_BROWSER_GATHERUSAGESTATS=false \ | |
| NUMBA_CACHE_DIR=/tmp/numba_cache \ | |
| MPLCONFIGDIR=/tmp/matplotlib \ | |
| NUMBA_DISABLE_JIT=1 | |
| RUN mkdir -p /tmp/numba_cache /tmp/matplotlib | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # 必要ディレクトリを事前作成(権限対策) | |
| RUN mkdir -p /app/.streamlit /tmp/numba_cache /tmp/matplotlib | |
| EXPOSE 8501 | |
| # もしアプリが src/ にあるならこのまま。ルート直下なら "streamlit_app.py" に変更 | |
| CMD ["streamlit","run","src/streamlit_app.py","--server.port=8501","--server.address=0.0.0.0"] | |