Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions Dockerfile.gpu
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
FROM opendronemap/odm:gpu
ARG FROM_REPO=opendronemap/odm:gpu
FROM ${FROM_REPO}

@maurerle maurerle Aug 19, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useful when cross checking other states of the underlying ODM image.
Similar as here: https://github.com/WebODM/NodeODX/blob/a480583ff8a4d7aaa23f890433b78727ebe750d0/Dockerfile.gpu#L1-L2

MAINTAINER Piero Toffanin <pt@masseranolabs.com>

EXPOSE 3000

USER root

RUN mkdir /var/www

WORKDIR "/var/www"
COPY . /var/www

ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 14

# install_deps.sh needs the tree (COPY above) and nvm's node/npm in the same RUN.
RUN bash install_deps.sh && \
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 && \
ln -s /var/www/node.sh /usr/bin/node
ln -s /var/www/node.sh /usr/bin/node && \
mkdir -p tmp && node index.js --powercycle

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 && node index.js --powercycle

RUN chown -R odm:odm /var/www
RUN chown -R odm:odm /code
RUN useradd -m -d "/home/odm" -s /bin/bash odm && \
chown -R odm:odm /var/www && \
chown -R odm:odm /code

USER odm

Expand Down
Loading