Skip to content
Snippets Groups Projects
Dockerfile-CI 458 B
Newer Older
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
# A docker file for building the image on GitLab's CI
FROM mambaorg/micromamba:latest
COPY --chown=$MAMBA_USER:$MAMBA_USER . /tmp/binder

# Install conda packages
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
RUN cd /tmp/binder && \
    micromamba install -y -n base -f environment.yml && \
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
    micromamba clean --all --yes
# Install configuration files
# After installing the packages to make sure these
# take precedence
RUN cp -rav /tmp/binder/install_files/* /opt/conda/

Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
RUN rm -rf /tmp/binder