forked from OpenDroneMap/NodeODM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gpu
29 lines (20 loc) · 922 Bytes
/
Dockerfile.gpu
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
FROM opendronemap/odm:gpu
MAINTAINER Piero Toffanin <[email protected]>
EXPOSE 3000
USER root
RUN apt-get update && apt-get install -y curl gpg-agent ca-certificates
RUN curl --silent --location https://deb.nodesource.com/setup_14.x | bash -
RUN 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
RUN echo /usr/local/cuda-11.2/compat >> /etc/ld.so.conf.d/989_cuda-11.conf && ldconfig
RUN mkdir /var/www
WORKDIR "/var/www"
RUN useradd -m -d "/home/odm" -s /bin/bash odm
COPY --chown=odm:odm . /var/www
RUN npm install --production && mkdir -p tmp
RUN chown -R odm:odm /var/www
RUN chown -R odm:odm /code
USER odm
ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"]