From 5ad16cf3965e2b309b72ff29af2a5a29704547c9 Mon Sep 17 00:00:00 2001 From: Kyungwon Chun Date: Thu, 23 Jul 2020 08:57:44 +0900 Subject: [PATCH] Support Ubuntu 18.04 As Python 2 ends its lifetime in January 2020, the last Ubuntu LTS, which supports Python script in this repository is 18.04. Therefore I specified the preferred Ubuntu version to 18.04 and changed to use package(s) in this distribution. Also, to prevent a stall by the interactive input of the 'tzdata', set the install sequence to noninteractive mode. --- Convert-food101-model/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Convert-food101-model/Dockerfile b/Convert-food101-model/Dockerfile index 31f70d8..65bd13f 100644 --- a/Convert-food101-model/Dockerfile +++ b/Convert-food101-model/Dockerfile @@ -1,4 +1,5 @@ -FROM ubuntu +FROM ubuntu:18.04 +ARG DEBIAN_FRONTEND=noninteractive COPY requirements.txt /requirements.txt @@ -9,7 +10,7 @@ RUN apt-get update && apt-get install -y \ python-pip \ python-dev \ ipython \ - ipython-notebook + jupyter-notebook # Install python requirements RUN pip install --upgrade pip @@ -23,4 +24,4 @@ RUN mv food101-model.hdf5 /workspace/ EXPOSE 8888 # Launch Jupyter notebook -CMD ["jupyter-notebook","--allow-root", "--ip=0.0.0.0", "--notebook-dir=/workspace"] \ No newline at end of file +CMD ["jupyter-notebook", "--allow-root", "--ip=0.0.0.0", "--notebook-dir=/workspace"]