Commit c8ce34de authored by Matthieu Boileau's avatar Matthieu Boileau

Fix Dockerfile for CI

parent 8603bdf4
Pipeline #6015 passed with stages
in 8 minutes and 10 seconds
......@@ -20,14 +20,16 @@ RUN apt-get update && apt-get -yq dist-upgrade \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER $NB_USER
ADD docker/environment.yml /tmp/
RUN conda update -n base -c defaults conda && \
conda env create -f /tmp/environment.yml && \
conda clean --all -f -y
RUN echo "source activate $(head -1 /tmp/environment.yml | cut -d' ' -f2)" > ~/.bashrc
ENV PATH /opt/conda/envs/$(head -1 /tmp/environment.yml | cut -d' ' -f2)/bin:$PATH
RUN python3 -m bash_kernel.install
RUN echo "source activate outils-dev-log" > ~/.bashrc
ENV PATH /opt/conda/envs/outils-dev-log/bin:$PATH
USER $NB_USER
SHELL ["conda", "run", "-n", "outils-dev-log", "/bin/bash", "-c"]
RUN python -m bash_kernel.install
WORKDIR $HOME/work
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment