Dockerfile 1.23 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
    conda install --yes \
      conda \
      conda-build \
30 31
      conda-verify && \
    conda config --system --prepend channels conda-forge
32

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

36 37 38 39 40 41
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

42 43
RUN conda clean --all --yes

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