Corin1998 commited on
Commit
1f951ea
·
verified ·
1 Parent(s): ea1cd32

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,16 +5,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
5
  PYTHONUNBUFFERED=1 \
6
  PIP_NO_CACHE_DIR=1
7
 
8
- # 基本ビルド依存(PyMC ビルド安定化のために gfortran も追加)
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  build-essential \
11
  gfortran \
12
- libatlas-base-dev \
 
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  WORKDIR /app
16
 
17
- # 先に依存だけ入れてレイヤーを分割(キャッシュ効率◎)
18
  COPY requirements.txt /app/
19
  RUN python -m pip install --upgrade pip setuptools wheel && \
20
  pip install -r requirements.txt
@@ -25,5 +26,4 @@ COPY . /app
25
  # HF Spaces 既定ポート
26
  EXPOSE 7860
27
 
28
- # ★typo 修正:CMD(CDM ではなく)
29
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
  PYTHONUNBUFFERED=1 \
6
  PIP_NO_CACHE_DIR=1
7
 
8
+ # PyMC / SciPy 系のビルド/実行に必要なツールとBLAS/LAPACK
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  build-essential \
11
  gfortran \
12
+ libopenblas-dev \
13
+ liblapack-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  WORKDIR /app
17
 
18
+ # 依存インストール(ホイール化のため pip周りも更新)
19
  COPY requirements.txt /app/
20
  RUN python -m pip install --upgrade pip setuptools wheel && \
21
  pip install -r requirements.txt
 
26
  # HF Spaces 既定ポート
27
  EXPOSE 7860
28
 
 
29
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]