Newer
Older
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
FROM debian:jessie
MAINTAINER Jeremy Fee <jmfee@usgs.gov>
LABEL usgs.geomag-algorithms.version=0.2.0
# update os
RUN apt-get update --fix-missing && \
apt-get install -y --no-install-recommends \
bzip2 \
ca-certificates \
curl \
gcc \
libcurl4-gnutls-dev \
libglib2.0-0 \
libgnutls28-dev \
libsm6 \
libxext6 \
libxrender1 && \
apt-get clean
ENV PATH /conda/bin:$PATH
# install conda and install obspy
RUN echo 'export PATH=/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh \
-o ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /conda && \
rm ~/miniconda.sh && \
conda config --add channels obspy && \
conda install --yes jupyter obspy && \
conda clean -i -l -t -y && \
pip install pycurl
# copy library (ignores set in .dockerignore)
COPY . /geomag-algorithms
RUN pip install /geomag-algorithms && \
mkdir /notebooks
WORKDIR /geomag-algorithms
EXPOSE 80
CMD /bin/bash -c " \
exec jupyter notebook \
--ip='*' \
--notebook-dir=/notebooks \
--no-browser \
--port=80 \
"