-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSingularity.def
More file actions
34 lines (29 loc) · 897 Bytes
/
Singularity.def
File metadata and controls
34 lines (29 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Bootstrap: docker
From: nvcr.io/nvidia/pytorch:20.03-py3
%files
./requirements.txt /app/
%post
cd /app/
apt update
apt install -y software-properties-common nano less
add-apt-repository ppa:deadsnakes/ppa -y
apt update
apt install -y python3.8 python3-pip
python3.8 -m pip install pip
python3.8 -m pip install -r requirements.txt
%environment
export PYTHONPATH=/app
%runscript
echo "cd /app/entrypoints"
cd /app/entrypoints
echo "python3.8 -m pip install -r ../requirements.txt"
python3.8 -m pip install -r ../requirements.txt
echo "Running interview with arguments: $*"
python3.8 $@
%startscript
echo "cd /app/entrypoints"
cd /app/entrypoints
echo "python3.8 -m pip install -r ../requirements.txt"
python3.8 -m pip install -r ../requirements.txt
echo "Running interview with arguments: $*"
python3.8 $@