File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ services:
5656 # Mount license file
5757 - ./licenses:/licenses:ro
5858 # Note: COBRA Toolbox and VMH revamped are now installed in the image, not mounted
59+ # Writable directory for MATLAB to create temporary data files
60+ - matlab_data:/matlab/data
5961 shm_size : 512M
6062 # Restart on failure but not on manual stop or successful exit
6163 restart : on-failure
@@ -68,4 +70,5 @@ services:
6870
6971volumes :
7072 staticfiles :
73+ matlab_data :
7174
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ RUN python3 -m pip install --break-system-packages flask
2323# Create directories for MATLAB scripts and toolboxes
2424RUN mkdir -p /matlab/scripts
2525RUN mkdir -p /matlab/toolboxes/vmh_revamped
26+ RUN mkdir -p /matlab/data
2627
2728# Clone and initialize COBRA Toolbox with submodules
2829RUN git clone --depth=1 https://github.com/opencobra/cobratoolbox.git /matlab/toolboxes/cobratoolbox && \
@@ -32,6 +33,9 @@ RUN git clone --depth=1 https://github.com/opencobra/cobratoolbox.git /matlab/to
3233# Create MATLAB user directories to prevent startup errors
3334RUN mkdir -p /root/Documents/MATLAB
3435
36+ # Make /matlab directory writable for MATLAB operations
37+ RUN chmod -R 777 /matlab
38+
3539WORKDIR /matlab/scripts
3640
3741# Note: vmh_revamped should be accessible in build context
You can’t perform that action at this time.
0 commit comments