diff --git a/ai-box/Dockerfile b/ai-box/Dockerfile index 796e339e590b89f6d3de4ac0da6fcab771a82f09..55b77b1e36def970700bf497978e96809643bbb2 100644 --- a/ai-box/Dockerfile +++ b/ai-box/Dockerfile @@ -25,6 +25,7 @@ ENV LIBRARY_PATH /usr/lib/gcc/x86_64-linux-gnu/8 COPY sources.list /etc/apt/sources.list COPY requirements.txt ./ COPY simsun.ttc /usr/local/fonts/ +COPY tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl ./ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \ && apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 \ && apt-get update \ @@ -34,6 +35,7 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \ r-base=3.5.1-* r-base-dev=3.5.1-* r-recommended=3.5.1-* \ && pip install --no-cache-dir --trusted-host mirrors.aliyun.com \ -i http://mirrors.aliyun.com/pypi/simple -r requirements.txt \ + && pip install ./tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl \ && echo 'options(repos = c(CRAN = "https://cloud.r-project.org/"))' >> /etc/R/Rprofile.site \ && echo 'source("/etc/R/Rprofile.site")' >> /etc/littler.r \ && ln -s /usr/lib/R/site-library/littler/examples/install.r /usr/local/bin/install.r \ @@ -43,6 +45,7 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 \ && install.r docopt \ && install.r mirt \ && install.r mirtCAT \ + && rm ./tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl \ && rm -rf /tmp/downloaded_packages/ /tmp/*.rds \ && rm -rf /var/lib/apt/lists/* diff --git a/ai-box/requirements.txt b/ai-box/requirements.txt index 181e49250f24c1195bc34ac89edfe7e938479912..11d076e6a5b2015b21db563f352328012ffdc6b8 100644 --- a/ai-box/requirements.txt +++ b/ai-box/requirements.txt @@ -39,3 +39,4 @@ oss2==2.5.0 zbarlight==2.1 imutils==0.5.1 seaborn==0.8.1 +keras==2.2.4 diff --git a/ai-box/tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl b/ai-box/tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl new file mode 100644 index 0000000000000000000000000000000000000000..166d013937c8418646248fe02891e560e618b648 Binary files /dev/null and b/ai-box/tensorflow-1.12.0-cp37-cp37m-linux_x86_64.whl differ