Skip to content

Commit 850ae19

Browse files
committed
Use micromamba run instead of activate during build
1 parent 26050ca commit 850ae19

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ARG HOST_UID=1000
88
RUN ${CONDA_BIN} install --no-pin -qq -y -n base -c conda-forge \
99
python=${PY_VER} pip setuptools git graphviz pydot && \
1010
${CONDA_BIN} clean -qq -afy
11+
ENV PATH="$PATH:/home/mambauser/.local/bin"
1112

1213
COPY --chown=${HOST_UID:-1000}:mambauser ./pyproject.toml ./README.md ./LICENSE.txt /main/
1314
COPY --chown=${HOST_UID:-1000}:mambauser ./datajoint /main/datajoint
@@ -18,9 +19,6 @@ USER root
1819
RUN \
1920
chown -R ${HOST_UID:-1000}:mambauser /main && \
2021
chown -R ${HOST_UID:-1000}:mambauser /src && \
21-
eval "$(micromamba shell hook --shell bash)" && \
22-
micromamba activate base && \
23-
pip install -q --no-cache-dir /main && \
22+
micromamba run -n base pip install -q --no-cache-dir /main && \
2423
rm -r /main/*
2524
USER ${MAMBA_USER}
26-
ENV PATH="$PATH:/home/mambauser/.local/bin"

0 commit comments

Comments
 (0)