-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (25 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM tensorflow/tensorflow
MAINTAINER audrism <audris@mockus.org>
# install debian packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
# install essentials
git openssh-client \
dbus openssh-server lsof sudo vim wget curl lsb-release tmux zip \
libsm6 libxext6 libfontconfig1 libxrender1 python-pip libglu1-mesa libegl1-mesa \
r-recommended r-base-dev r-cran-car r-cran-caret r-cran-randomforest r-cran-rcolorbrewer r-cran-fastcluster \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip --no-cache-dir install pandas opencv-python jupyter pymongo
RUN if [ ! -d /var/run/sshd ]; then mkdir /var/run/sshd; chmod 0755 /var/run/sshd; fi
COPY *.sh /bin/
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/$NB_USER
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && mkdir $HOME/.ssh && chown -R $NB_USER:users $HOME
COPY *.py $HOME/
COPY id_rsa_gcloud.pub $HOME/.ssh/authorized_keys
RUN pip install tensorflow==1.15.0
# cd $HOME && wget https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5
RUN chown -R $NB_USER:users $HOME && chmod -R og-rwx $HOME/.ssh