Skip to content

Commit

Permalink
Corrected sed environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed May 7, 2021
1 parent f12db4c commit 4ab0d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN apk update && \
COPY environment.yml /environment.yml
# Python 3.8.5 already installed along with recent version of pip
# so remove Python and pip deps from environment.yml before installation
RUN sed -i "$(grep -n python>=3.7 /environment.yml | cut -f1 -d:)d" /environment.yml && \
sed -i "$(grep -n pip= /environment.yml | cut -f1 -d:)d" /environment.yml
RUN sed -i "$(grep -n 'python>=3.7' /environment.yml | cut -f1 -d:)d" /environment.yml && \
sed -i "$(grep -n 'pip=' /environment.yml | cut -f1 -d:)d" /environment.yml
# Install the conda environment
RUN conda env create --quiet -f /environment.yml && conda clean -a
# Add conda installation dir to PATH (instead of doing 'conda activate')
Expand Down

0 comments on commit 4ab0d3b

Please sign in to comment.