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

Commit f9cfd5b

Browse files
committed
Fix environment.yml install in anaconda container
1 parent fd61bd5 commit f9cfd5b

File tree

1 file changed

+4
-1
lines changed
  • containers/python-3-anaconda/.devcontainer

1 file changed

+4
-1
lines changed

containers/python-3-anaconda/.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ RUN apt-get update && apt-get -y install git procps
1414
# Install any missing dependencies for enhanced language service
1515
RUN apt-get install -y libicu[0-9][0-9]
1616

17+
RUN mkdir /workspace
18+
WORKDIR /workspace
19+
1720
# Install Python dependencies from requirements.txt if it exists
1821
COPY .devcontainer/environment.yml.temp environment.yml* /workspace/
19-
RUN if [ -f "environment.yml" ]; then conda install environment.yml && rm environment.yml*; fi
22+
RUN if [ -f "environment.yml" ]; then conda env update base -f environment.yml && rm environment.yml*; fi
2023

2124
# Expose port 5000 as the default web port
2225
EXPOSE 5000

0 commit comments

Comments
 (0)