File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,18 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
84
84
rm -fr /packages
85
85
WORKDIR /
86
86
87
+ # Installing MATLAB Engine for Python
88
+ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update \
89
+ && apt-get install --no-install-recommends -y python3-distutils \
90
+ && apt-get clean \
91
+ && apt-get -y autoremove \
92
+ && rm -rf /var/lib/apt/lists/* \
93
+ && cd /opt/matlab/extern/engines/python \
94
+ && python setup.py install
95
+
87
96
# Switch back to notebook user
88
97
USER $NB_USER
98
+ WORKDIR /home/${NB_USER}
89
99
90
100
# Install integration
91
101
RUN python -m pip install jupyter-matlab-proxy
Original file line number Diff line number Diff line change @@ -68,10 +68,11 @@ USER root
68
68
ENV DEBIAN_FRONTEND="noninteractive" TZ="Etc/UTC"
69
69
70
70
# Copy MATLAB install from supplied Docker image
71
- COPY --from=matlab-install-stage ${BASE_ML_INSTALL_LOC} /usr/local/MATLAB
71
+ ARG MATLAB_INSTALL_LOCATION="/opt/matlab"
72
+ COPY --from=matlab-install-stage ${BASE_ML_INSTALL_LOC} ${MATLAB_INSTALL_LOCATION}
72
73
73
74
# Put MATLAB on the PATH
74
- RUN ln -s /usr/local/MATLAB /bin/matlab /usr/local/bin/matlab
75
+ RUN ln -s ${MATLAB_INSTALL_LOCATION} /bin/matlab /usr/local/bin/matlab
75
76
76
77
## Installing Dependencies for Ubuntu 20.04
77
78
# For MATLAB : Get base-dependencies.txt from matlab-deps repository on GitHub
@@ -102,8 +103,18 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
102
103
rm -fr /packages
103
104
WORKDIR /
104
105
106
+ # Installing MATLAB Engine for Python
107
+ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update \
108
+ && apt-get install --no-install-recommends -y python3-distutils \
109
+ && apt-get clean \
110
+ && apt-get -y autoremove \
111
+ && rm -rf /var/lib/apt/lists/* \
112
+ && cd ${MATLAB_INSTALL_LOCATION}/extern/engines/python \
113
+ && python setup.py install
114
+
105
115
# Switch back to notebook user
106
116
USER $NB_USER
117
+ WORKDIR /home/${NB_USER}
107
118
108
119
# Install integration
109
120
RUN python -m pip install jupyter-matlab-proxy
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ WORKDIR /
71
71
72
72
# Switch back to notebook user
73
73
USER $NB_USER
74
+ WORKDIR /home/${NB_USER}
74
75
75
76
# Install integration
76
77
RUN python -m pip install jupyter-matlab-proxy
You can’t perform that action at this time.
0 commit comments