Corin1998 commited on
Commit
7cf3b8e
·
verified ·
1 Parent(s): 223fdf2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,7 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
5
  PIP_DISABLE_PIP_VERSION_CHECK=on \
6
  PIP_NO_CACHE_DIR=on
7
 
8
- # Prophet/NeuralProphet 向けのビルド系とBLAS/LAPACK
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  build-essential \
11
  libopenblas-dev \
@@ -16,11 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
16
 
17
  WORKDIR /workspace
18
 
19
- # 依存を先に入れてキャッシュを効かせる
20
  COPY requirements.txt ./requirements.txt
21
- RUN pip install --upgrade pip && pip install -r requirements.txt
 
 
22
 
23
- # 残りを一括コピー(app.py / app/ など)
24
  COPY . .
25
 
26
  EXPOSE 7860
 
5
  PIP_DISABLE_PIP_VERSION_CHECK=on \
6
  PIP_NO_CACHE_DIR=on
7
 
8
+ # BLAS/LAPACK(pandas/numpy用)。Prophetを後で入れるならこれでOK
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  build-essential \
11
  libopenblas-dev \
 
16
 
17
  WORKDIR /workspace
18
 
 
19
  COPY requirements.txt ./requirements.txt
20
+ RUN pip install --upgrade pip \
21
+ && pip install --no-cache-dir -r requirements.txt \
22
+ && python -c "import gradio; import pandas; print('gradio', gradio.__version__)"
23
 
 
24
  COPY . .
25
 
26
  EXPOSE 7860