Skip to content

Commit

Permalink
Fixed empty argument
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Oct 17, 2023
1 parent 0c95fb3 commit f25cbcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -149,7 +149,6 @@ RUN mkdir -p "$VNC_BASE_DIR" && \
# Install FreeSurfer:
ARG FREESURFER_VERSION=7.4.1
ARG FREESURFER_HOME=/usr/local/freesurfer/$FREESURFER_VERSION
ARG FREESURFER_DL_URL=https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/$FREESURFER_VERSION/freesurfer_ubuntu22-$FREESURFER_VERSION_amd64.deb

# Environment Variables
ENV FREESURFER_HOME="${FREESURFER_HOME}"
@@ -169,7 +168,7 @@ ENV MNI_PERL5LIB="$MINC_LIB_DIR/perl5/5.8.5"
ENV PATH="$FREESURFER_HOME/bin:$FREESURFER_HOME/tktools:$MINC_BIN_DIR:$PATH"

# Install Freesurfer
RUN dlpath=$(curl -w "%{filename_effective}" -fLO "${FREESURFER_DL_URL}") && \
RUN dlpath=$(curl -w "%{filename_effective}" -fLO "https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/$FREESURFER_VERSION/freesurfer_ubuntu22-$FREESURFER_VERSION_amd64/deb") && \
dpkg --install --force-depends "${dlpath}" && \
apt-get install --fix-broken --yes && \
rm -f "${dlpath:-}"

0 comments on commit f25cbcb

Please sign in to comment.