FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 24f4b2cd authored by L. Bower's avatar L. Bower
Browse files

making docker build more efficient

parent de6c8817
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,9 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
# Install miniconda
ENV CONDA_DIR /storage/app/miniconda3
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
RUN /bin/bash ~/miniconda.sh -b -p $CONDA_DIR
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh \
&& /bin/bash ~/miniconda.sh -b -p $CONDA_DIR \
&& rm -v ~/miniconda.sh;
# Put conda in path so we can use conda activate
ENV PATH=$CONDA_DIR/bin:$PATH
......@@ -29,7 +30,7 @@ ENV PATH=$CONDA_DIR/bin:$PATH
RUN conda env create --file conda-env-py3EWS-withbuilds.yml --prefix /storage/app/EWS_prod/envs/conda/py3EWS
#tidy
RUN rm -v ~/miniconda.sh conda-env-py3EWS-withbuilds.yml;
RUN rm -v conda-env-py3EWS-withbuilds.yml;
#these usernames and ids match the production server (IaaS), override when building a local image if needed
ARG GNAME=ews
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment