Skip to content

Commit

Permalink
updating dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
scarrazza committed Aug 28, 2021
1 parent 668a673 commit 4e067d3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ENV CONDA_FILE Miniconda3-latest-Linux-x86_64.sh
# Disable Prompt During Packages Installation
ARG DEBIAN_FRONTEND=noninteractive

# Get conda environemnt name
ARG CONDA_ENV_NAME
ENV CONDA_ENV_NAME=$CONDA_ENV_NAME

# Update Ubuntu Software repository
RUN apt update

Expand All @@ -35,8 +39,9 @@ RUN conda config --append channels conda-forge
COPY conda-bld /root/conda-bld

# install the nnpdf framework
RUN conda create -n nnpdfenv -c file:///root/conda-bld/linux-64 nnpdf && \
echo "conda activate nnpdfenv" >> /root/.bashrc
RUN conda create -n $CONDA_ENV_NAME -c file:///root/conda-bld/linux-64 nnpdf && \
echo "conda activate $CONDA_ENV_NAME" >> /root/.bashrc && \
conda env export --name $CONDA_ENV_NAME > /root/$CONDA_ENV_NAME.yml

# delete package
RUN rm -r /root/conda-bld
Expand Down

0 comments on commit 4e067d3

Please sign in to comment.