Skip to content

Commit 5e0c0f1

Browse files
authored
Update base image.
1 parent 16c6048 commit 5e0c0f1

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

matlab/Dockerfile

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1-
FROM ubuntu:trusty
1+
FROM ubuntu:bionic
22

33
MAINTAINER Guillaume Flandin <[email protected]>
44

5-
RUN apt-get update && \
6-
apt-get install -y unzip xorg wget libasound2 && \
7-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
5+
RUN apt-get update && apt-get -y install \
6+
unzip xorg wget \
7+
&& apt-get clean \
8+
&& rm -rf \
9+
/tmp/hsperfdata* \
10+
/var/*/apt/*/partial \
11+
/var/lib/apt/lists/* \
12+
/var/log/apt/term*
813

914
# Install MATLAB MCR in /opt/mcr/
1015
ENV MATLAB_VERSION R2018b
1116
ENV MCR_VERSION v95
12-
RUN mkdir /opt/mcr_install && \
13-
mkdir /opt/mcr && \
14-
wget -P /opt/mcr_install https://www.mathworks.com/supportfiles/downloads/${MATLAB_VERSION}/deployment_files/${MATLAB_VERSION}/installers/glnxa64/MCR_${MATLAB_VERSION}_glnxa64_installer.zip && \
15-
unzip -q /opt/mcr_install/MCR_${MATLAB_VERSION}_glnxa64_installer.zip -d /opt/mcr_install && \
16-
/opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
17-
rm -rf /opt/mcr_install /tmp/*
17+
RUN mkdir /opt/mcr_install \
18+
&& mkdir /opt/mcr \
19+
&& wget -P /opt/mcr_install https://www.mathworks.com/supportfiles/downloads/${MATLAB_VERSION}/deployment_files/${MATLAB_VERSION}/installers/glnxa64/MCR_${MATLAB_VERSION}_glnxa64_installer.zip \
20+
&& unzip -q /opt/mcr_install/MCR_${MATLAB_VERSION}_glnxa64_installer.zip -d /opt/mcr_install \
21+
&& /opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent \
22+
&& rm -rf /opt/mcr_install /tmp/*
1823

1924
# Install SPM Standalone in /opt/spm12/
2025
ENV SPM_VERSION 12
2126
ENV SPM_REVISION r7487
2227
ENV LD_LIBRARY_PATH /opt/mcr/${MCR_VERSION}/runtime/glnxa64:/opt/mcr/${MCR_VERSION}/bin/glnxa64:/opt/mcr/${MCR_VERSION}/sys/os/glnxa64:/opt/mcr/${MCR_VERSION}/sys/opengl/lib/glnxa64
2328
ENV MCR_INHIBIT_CTF_LOCK 1
24-
RUN wget --no-check-certificate -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restricted/bids/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip && \
25-
unzip -q /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip -d /opt && \
26-
rm -f /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip && \
27-
/opt/spm${SPM_VERSION}/spm${SPM_VERSION} function exit
29+
ENV SPM_HTML_BROWSER 0
30+
RUN wget --no-check-certificate -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restricted/bids/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip \
31+
&& unzip -q /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip -d /opt \
32+
&& rm -f /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip \
33+
&& /opt/spm${SPM_VERSION}/spm${SPM_VERSION} function exit
2834

2935
# Configure entry point
3036
ENTRYPOINT ["/opt/spm12/spm12"]

0 commit comments

Comments
 (0)