Skip to content

Commit 5dce8c8

Browse files
author
Murat Bilgel
committed
fix: init LD_LIBRARY_PATH and CPATH as empty str if not in env
1 parent 3dcd964 commit 5dce8c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ ENV PATH="/opt/afni-latest:$PATH" \
203203
RUN useradd -m -s /bin/bash -G users petprep
204204
WORKDIR /home/petprep
205205
ENV HOME="/home/petprep" \
206-
LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
206+
LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH:-}"
207207

208208
COPY --from=micromamba /bin/micromamba /bin/micromamba
209209
COPY --from=micromamba /opt/conda/envs/petprep /opt/conda/envs/petprep
@@ -212,7 +212,7 @@ ENV MAMBA_ROOT_PREFIX="/opt/conda"
212212
RUN micromamba shell init -s bash && \
213213
echo "micromamba activate petprep" >> $HOME/.bashrc
214214
ENV PATH="/opt/conda/envs/petprep/bin:$PATH" \
215-
CPATH="/opt/conda/envs/petprep/include:$CPATH" \
215+
CPATH="/opt/conda/envs/petprep/include:${CPATH:-}" \
216216
LD_LIBRARY_PATH="/opt/conda/envs/petprep/lib:$LD_LIBRARY_PATH"
217217

218218
# Precaching atlases

0 commit comments

Comments
 (0)