diff --git a/containers/python-3-anaconda/.devcontainer/Dockerfile b/containers/python-3-anaconda/.devcontainer/Dockerfile index 7c26443580..cc93ab030b 100644 --- a/containers/python-3-anaconda/.devcontainer/Dockerfile +++ b/containers/python-3-anaconda/.devcontainer/Dockerfile @@ -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