Changed dockerfile to recompile ODM core to support more architectures

pull/1/head
Piero Toffanin 2016-11-27 11:40:02 -05:00
rodzic 5e85b306b7
commit cfbf289873
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -8,6 +8,13 @@ RUN curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
RUN apt-get install -y nodejs python-gdal
RUN npm install -g nodemon
# Recompile OpenDroneMap. This is necessary as the target architecture might be different than the one from which the base image was created
WORKDIR "/code"
RUN rm -fr build && rm -fr SuperBuild/build \
&& cd SuperBuild && mkdir build && cd build && cmake .. && make -j$(nproc) \
&& cd ../.. && mkdir build && cd build && cmake .. && make -j$(nproc)
RUN mkdir /var/www
WORKDIR "/var/www"