-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtf-Dockerfile
59 lines (48 loc) · 1.75 KB
/
tf-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM nvcr.io/nvidia/tensorflow:19.02-py3
LABEL maintainer [email protected]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
aria2 \
git \
zsh \
vim \
sudo \
htop \
imagemagick \
man \
fdupes \
openssl \
libcurl4-gnutls-dev \
wget \
tmux \
tree \
openssh-server \
curl &&\
rm -rf /var/lib/apt/lists/* &&\
apt-get clean
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \
curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-$(dpkg --print-architecture)" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-$(dpkg --print-architecture).asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
#RUN apt-get update && \
#apt-get install -y software-properties-common && \
#apt-get install -y cmake && \
#apt-get update
#add-apt-repository ppa:george-edison55/cmake-3.x && \
# Pip installs
RUN python3 -m pip install opencv-contrib-python
#ld config over ssh
RUN mkdir /var/run/sshd
RUN ldconfig
# Oh my zsh
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "zsh"]
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
# Rmate
RUN curl -Lo /bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate && \
chmod a+x /bin/rmate
# Entrypoint
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["sh","/usr/local/bin/entrypoint.sh"]
WORKDIR /workspace