forked from clawpack/clawpack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (26 loc) · 889 Bytes
/
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
ARG SOURCE_IMAGE=$SOURCE_IMAGE
FROM $SOURCE_IMAGE
# install pytides
RUN pip install git+https://github.com/maritimeplanning/pytides.git@master \
--no-cache-dir
# install nose
RUN conda install -yc conda-forge nose
COPY . /clawpack
## install Clawpack
ENV CLAW=/clawpack
ENV NETCDF4_DIR=/opt/conda
ENV FC=gfortran
ENV MPLBACKEND=Agg
# this is needed to find libraries when building geoclaw (particularly lapack)
ENV LIB_PATHS=/opt/conda/lib
WORKDIR /clawpack
# super sketchy hack to get around our need for compiler_compat binaries and some
# other things that cause problems together?
# see https://github.com/ContinuumIO/anaconda-issues/issues/11152
RUN rm -f /opt/conda/compiler_compat/ld
# need to change shell in order for source command to work
SHELL ["/bin/bash", "-c"]
# install clawpack
RUN pip install -e .
WORKDIR /
ENTRYPOINT ["tini", "--", "/usr/bin/prepare.sh"]