forked from OpenDroneMap/NodeODM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.gpu
31 lines (21 loc) · 1.02 KB
/
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
30
31
FROM opendronemap/odm:gpu
LABEL maintainer="Piero Toffanin <pt@masseranolabs.com>"
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
RUN apt-get remove -y cuda-libraries-11-2 cuda-cudart-11-2 cuda-compat-11-2 cuda-nvrtc-11-2 cuda-nvtx-11-2
USER odm
ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"]