Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -5,6 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
| 5 |
PIP_DISABLE_PIP_VERSION_CHECK=on \
|
| 6 |
PIP_NO_CACHE_DIR=on
|
| 7 |
|
|
|
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
build-essential \
|
| 10 |
libopenblas-dev \
|
|
@@ -14,11 +15,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
| 16 |
WORKDIR /workspace
|
|
|
|
| 17 |
COPY requirements.txt ./requirements.txt
|
| 18 |
RUN pip install --upgrade pip \
|
| 19 |
&& pip install --no-cache-dir -r requirements.txt \
|
| 20 |
&& python -c "import gradio; print('gradio', gradio.__version__)"
|
| 21 |
|
|
|
|
| 22 |
COPY . .
|
|
|
|
| 23 |
EXPOSE 7860
|
| 24 |
-
CMD ["python", "
|
|
|
|
| 5 |
PIP_DISABLE_PIP_VERSION_CHECK=on \
|
| 6 |
PIP_NO_CACHE_DIR=on
|
| 7 |
|
| 8 |
+
# BLAS/LAPACK(Prophetを後で入れるなら十分)
|
| 9 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 10 |
build-essential \
|
| 11 |
libopenblas-dev \
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 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; print('gradio', gradio.__version__)"
|
| 23 |
|
| 24 |
+
# 以降の全ファイルをコピー(ui.py / app/ など)
|
| 25 |
COPY . .
|
| 26 |
+
|
| 27 |
EXPOSE 7860
|
| 28 |
+
CMD ["python", "ui.py"]
|