-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
40 lines (30 loc) · 1.34 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
32
33
34
35
36
37
38
39
40
FROM fitiotlab/iot-lab-jupyterlab-base:latest
LABEL maintainer="[email protected]"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
add-apt-key \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# gosu
RUN export KEY=B42F6819007F00F88E364FD4036A9C25BF357DD4; \
for server in $(shuf -e ha.pool.sks-keyservers.net \
hkp://p80.pool.sks-keyservers.net:80 \
keyserver.ubuntu.com \
hkp://keyserver.ubuntu.com:80 \
keyserver.pgp.com \
pgp.mit.edu) ; do \
gpg --batch --keyserver "$server" --recv-keys $KEY && break || : ; \
done;
RUN curl -L -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" \
&& curl -L -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
ADD bootstrap_jupyter.sh /bootstrap_jupyter.sh
RUN chmod +x /bootstrap_jupyter.sh
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8888
WORKDIR /home/jovyan
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bootstrap_jupyter.sh"]