forked from OpenDroneMap/NodeODM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapptainer.def
34 lines (26 loc) · 805 Bytes
/
apptainer.def
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: opendronemap/odm:latest
Stage: spython-base
%files
. /var/www
%labels
MAINTAINER Piero Toffanin <[email protected]>
%post
# EXPOSE 3000
su - root # USER root
apt-get update && apt-get install -y curl gpg-agent
curl --silent --location https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \
ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \
ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal
mkdir -p /var/www
mkdir -p "/var/www"
cd "/var/www"
npm install --production && mkdir -p tmp
%runscript
cd "/var/www"
exec /usr/bin/node /var/www/index.js "$@"
%startscript
cd "/var/www"
exec /usr/bin/node /var/www/index.js "$@"