|
1 | | -FROM ubuntu:trusty |
| 1 | +FROM ubuntu:bionic |
2 | 2 |
|
3 | 3 | MAINTAINER Guillaume Flandin < [email protected]> |
4 | 4 |
|
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* |
8 | 13 |
|
9 | 14 | # Install MATLAB MCR in /opt/mcr/ |
10 | 15 | ENV MATLAB_VERSION R2018b |
11 | 16 | 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/* |
18 | 23 |
|
19 | 24 | # Install SPM Standalone in /opt/spm12/ |
20 | 25 | ENV SPM_VERSION 12 |
21 | 26 | ENV SPM_REVISION r7487 |
22 | 27 | 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 |
23 | 28 | 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 |
28 | 34 |
|
29 | 35 | # Configure entry point |
30 | 36 | ENTRYPOINT ["/opt/spm12/spm12"] |
|
0 commit comments