forked from California-Planet-Search/radvel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 937 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
FROM conda/miniconda3
ENV TERM=xterm
ENV TERMINFO=/etc/terminfo
ENV PYTHONDONTWRITEBYTECODE=true
ENV COVERALLS_REPO_TOKEN=7ZpQ0LQWM2PNl5iu7ZndyFEisQnZow8oT
RUN mkdir /code && \
mkdir /code/radvel && \
apt-get --yes update && \
apt-get install --yes gcc git pkg-config libhdf5-100 libhdf5-dev && \
apt-get clean && \
conda config --add channels conda-forge && \
conda config --set channel_priority strict && \
conda update -n base -c defaults conda && \
conda install --yes nomkl numpy pybind11 coveralls nose && \
conda install --yes -c conda-forge celerite && \
conda clean -afy
WORKDIR /code/radvel
ADD requirements.txt /code/radvel/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
ADD . /code/radvel
CMD python setup.py build_ext -i && \
pip install --no-cache-dir --no-deps . && \
nosetests radvel --with-coverage --cover-package=radvel && \
coveralls