Skip to content

Commit 8c0977a

Browse files
committed
use requirements_tests
1 parent 98b003c commit 8c0977a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ FROM mcr.microsoft.com/devcontainers/miniconda:0-3
33
# Copy environment.yml (if found) to a temp location so we update the environment. Also
44
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
55
COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
6-
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda install -n base -c conda-forge mamba -y && /opt/conda/bin/mamba env update -n base -f /tmp/conda-tmp/environment.yml && /opt/conda/bin/mamba install -n base -c conda-forge ipywidgets watermark quilt3 -y; fi \
6+
COPY requirements_tests.txt* /tmp/conda-tmp/
7+
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda install -n base -c conda-forge mamba -y && \
8+
/opt/conda/bin/mamba env update -n base -f /tmp/conda-tmp/environment.yml && \
9+
/opt/conda/bin/mamba install -c conda-forge -n base --file /tmp/conda-tmp/requirements_tests.txt -y ; fi \
710
&& rm -rf /tmp/conda-tmp
811

912
# [Optional] Uncomment to install a different version of Python than the default

0 commit comments

Comments
 (0)