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:
parent
e4f2fae114
commit
01b9c0a260
13
base/Dockerfile
Normal file
13
base/Dockerfile
Normal 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
14
base/bootstrap.sh
Executable 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
9
python3/Dockerfile
Normal 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
|
||||
|
7
tensorflow/1.12/Dockerfile
Normal file
7
tensorflow/1.12/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user