Skip to content
Snippets Groups Projects
Dockerfile 728 B
Newer Older
# To build:
# docker build -t gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket .
FROM centos:7

WORKDIR /work

COPY buildbucket_environment.yaml .
COPY package.sh .

# Download miniconda
RUN curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# Install miniconda (copied from https://hub.docker.com/r/continuumio/miniconda3/dockerfile)
RUN /bin/bash miniconda.sh -b -p $HOME/miniconda && \
    ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
    echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
    echo "conda activate base" >> ~/.bashrc
RUN /bin/bash -c "$HOME/miniconda/bin/conda env create -n build -f buildbucket_environment.yaml"