Skip to content

Commit 1ec2d03

Browse files
committed
Move requirements.txt install location to work around Singularity clearing /tmp
1 parent 87c62f4 commit 1ec2d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

container.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Bootstrap: docker
22
From: ubuntu:24.04
33

44
%files
5-
requirements.txt /tmp/requirements.txt
5+
requirements.txt /opt/requirements.txt
66
package.json /opt/node/package.json
77
package-lock.json /opt/node/package-lock.json
88

@@ -48,8 +48,8 @@ From: ubuntu:24.04
4848

4949
# Create Python virtual environment and install packages
5050
/usr/bin/python3 -m venv /opt/venv
51-
/opt/venv/bin/pip install -r /tmp/requirements.txt
52-
rm /tmp/requirements.txt
51+
/opt/venv/bin/pip install -r /opt/requirements.txt
52+
rm /opt/requirements.txt
5353

5454
# Install npm packages globally in the container
5555
cd /opt/node

0 commit comments

Comments
 (0)