Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Fix environment.yml install in anaconda container
Browse files Browse the repository at this point in the history
  • Loading branch information
qubitron committed Apr 16, 2019
1 parent fd61bd5 commit f9cfd5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion containers/python-3-anaconda/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ RUN apt-get update && apt-get -y install git procps
# Install any missing dependencies for enhanced language service
RUN apt-get install -y libicu[0-9][0-9]

RUN mkdir /workspace
WORKDIR /workspace

# Install Python dependencies from requirements.txt if it exists
COPY .devcontainer/environment.yml.temp environment.yml* /workspace/
RUN if [ -f "environment.yml" ]; then conda install environment.yml && rm environment.yml*; fi
RUN if [ -f "environment.yml" ]; then conda env update base -f environment.yml && rm environment.yml*; fi

# Expose port 5000 as the default web port
EXPOSE 5000
Expand Down

0 comments on commit f9cfd5b

Please sign in to comment.