diff --git a/docker/dockerfile b/docker/dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f1e4bc03f11126728e849f84c45c26e9a02f127a --- /dev/null +++ b/docker/dockerfile @@ -0,0 +1,30 @@ +#FROM continuumio/miniconda3:jessie-20190506 +FROM bsces/miniconda3:debian-stretch-20190610 + + +# update the conda packages +RUN conda update -y conda pip + +# # install development tools +# RUN apt-get update -y && apt-get install -y \ +# build-essential \ +# curl \ +# unzip + +# install environment packages +COPY . /home/root/source +WORKDIR /home/root/source +RUN ls +RUN conda env update --name base --file environment.yml +RUN git clone https://earth.bsc.es/gitlab/es/diagonals.git +RUN pip install ./diagonals +RUN pip install /home/root/source +RUN conda clean --all -y +RUN rm -r diagonals +RUN rm -r /home/root/source + +# run tests +RUN earthdiags -h + +ENTRYPOINT ["earthdiags"] +CMD ["-h"]