1
0
mirror of https://github.com/newnius/YAO-Dockerfiles.git synced 2025-06-06 07:51:54 +00:00

add files

This commit is contained in:
Newnius 2019-04-12 14:50:46 +08:00
parent e4f2fae114
commit 01b9c0a260
4 changed files with 43 additions and 0 deletions

13
base/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM nvidia/cuda:9.0-cudnn7-runtime
MAINTAINER Newnius <newnius.cn@gmail.com>
USER root
RUN apt update && \
apt install -y git
ADD bootstrap.sh /etc/bootstrap.sh
ENTRYPOINT ["/etc/bootstrap.sh"]

14
base/bootstrap.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
if ! [[ -z "${repo}" ]]; then
if [[ -z "${branch}" ]]; then
git clone $repo workspace
else
git clone -b $branch $repo /workspace
fi
fi
cd /workspace
$@

9
python3/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM quickdeploy/base
MAINTAINER Newnius <newnius.cn@gmail.com>
USER root
RUN apt update && \
apt install -y python3 python3-pip

View File

@ -0,0 +1,7 @@
FROM quickdeploy/python3
MAINTAINER Newnius <newnius.cn@gmail.com>
USER root
RUN pip3 install tensorflow-gpu==1.12 numpy pandas matplotlib sklearn scipy