-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (41 loc) · 1.82 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
41
42
43
44
45
46
47
48
49
50
51
52
FROM alpine:3.4
MAINTAINER CognitiveScale <devops@cognitivescale.com>
RUN apk --update --repository http://dl-4.alpinelinux.org/alpine/edge/community add \
bash \
git \
curl \
ca-certificates \
bzip2 \
unzip \
sudo \
libstdc++ \
glib \
libxext \
libxrender \
tini \
&& curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-2.23-r1.apk" -o /tmp/glibc.apk \
&& curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-bin-2.23-r1.apk" -o /tmp/glibc-bin.apk \
&& curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-i18n-2.23-r1.apk" -o /tmp/glibc-i18n.apk \
&& apk add --allow-untrusted /tmp/glibc*.apk \
&& /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib \
&& /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& rm -rf /tmp/glibc*apk /var/cache/apk/*
EXPOSE 8888
# Configure environment
ENV CONDA_DIR=/opt/conda CONDA_VER=4.0.5
ENV PATH=$CONDA_DIR/bin:$PATH SHELL=/bin/bash LANG=C.UTF-8
# Install conda
RUN mkdir -p $CONDA_DIR && \
echo export PATH=$CONDA_DIR/bin:'$PATH' > /etc/profile.d/conda.sh && \
curl https://repo.continuum.io/miniconda/Miniconda3-${CONDA_VER}-Linux-x86_64.sh -o mconda.sh && \
/bin/bash mconda.sh -f -b -p $CONDA_DIR && \
rm mconda.sh && \
$CONDA_DIR/bin/conda install --yes conda==${CONDA_VER}
RUN $CONDA_DIR/bin/conda install --yes nbformat
COPY /conda/environment.yml environment.yml
#RUN $CONDA_DIR/bin/conda env create -f environment.yml
RUN $CONDA_DIR/bin/conda install jupyter -y --quiet && \
mkdir /opt/notebooks && \
# Configure container startup as root
WORKDIR /opt/conda/bin
ENTRYPOINT ["/opt/conda/bin/jupyter notebook", "--notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser"]