Skip to content

Commit a051eb7

Browse files
committed
fix base image
1 parent abdddc3 commit a051eb7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docker/Dockerfile_base

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ MAINTAINER The nipype developers https://github.com/nipy/nipype
3737
COPY docker/files/neurodebian.gpg /root/.neurodebian.gpg
3838
ENV DEBIAN_FRONTEND=noninteractive
3939

40-
WORKDIR /opt
40+
# Installing curl
41+
RUN apt-get update && \
42+
apt-get install -y --no-install-recommends curl ca-certificates && \
43+
apt-get clean && \
44+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4145

46+
WORKDIR /opt
4247
# Installing freesurfer -- do it first so that it is cached early
4348
RUN curl -sSL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/6.0.0/freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0.tar.gz | tar zxv -C /opt \
4449
--exclude='freesurfer/trctrain' \
@@ -78,11 +83,11 @@ RUN echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW
7883
# Prepare environment
7984
RUN curl -sSL http://neuro.debian.net/lists/xenial.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \
8085
apt-key add /root/.neurodebian.gpg && \
81-
apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true; \
82-
apt-get update
86+
apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true
8387

8488
# Installing general Debian utilities and Neurodebian packages (FSL, AFNI, git)
85-
RUN apt-get install -y --no-install-recommends \
89+
RUN apt-get update && \
90+
apt-get install -y --no-install-recommends \
8691
fsl-core=5.0.9-1~nd+1+nd16.04+1 \
8792
fsl-mni152-templates=5.0.7-2 \
8893
afni=16.2.07~dfsg.1-2~nd16.04+1 \

0 commit comments

Comments
 (0)