Dockerfile 1.17 KB
Newer Older
1 2
FROM debian:stretch

3
ARG INSTALL_PATH=/cvmfs/ligo-containers.opensciencegrid.org/lscsoft/conda/latest/
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH $INSTALL_PATH/bin:$PATH

RUN apt-get update --fix-missing && \
    apt-get install --yes \
      wget \
      bzip2 \
      ca-certificates \
      libglib2.0-0 \
      libxext6 \
      libsm6 \
      libxrender1 \
      git \
      mercurial \
      subversion && \
    apt-get clean

22
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /root/anaconda.sh && \
23 24 25 26
    mkdir -p $(dirname $INSTALL_PATH) && \
    /bin/bash /root/anaconda.sh -b -p $INSTALL_PATH && \
    rm -f ~/anaconda.sh && \
    . $INSTALL_PATH/etc/profile.d/conda.sh && \
27 28 29 30
    conda install --yes \
      conda \
      conda-build \
      conda-verify
31

32 33 34
COPY environment-py27.yml /tmp
RUN conda env create -f /tmp/environment-py27.yml

35 36 37 38 39 40
COPY environment-py36.yml /tmp
RUN conda env create -f /tmp/environment-py36.yml

COPY environment-py37.yml /tmp
RUN conda env create -f /tmp/environment-py37.yml

41 42
RUN conda clean --all --yes

43
FROM scratch
44
ARG INSTALL_PATH=/cvmfs/ligo-containers.opensciencegrid.org/lscsoft/conda/latest/
45
COPY --from=0 $INSTALL_PATH /