2020-09-16 14:04:51 +00:00
|
|
|
FROM ubuntu:18.04
|
2019-04-09 18:38:19 +00:00
|
|
|
|
|
|
|
# Env variables
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2020-09-16 14:04:51 +00:00
|
|
|
ENV PYTHONPATH "$PYTHONPATH:/code/SuperBuild/install/lib/python3.6/dist-packages"
|
|
|
|
ENV PYTHONPATH "$PYTHONPATH:/code/SuperBuild/src/opensfm"
|
|
|
|
ENV LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/code/SuperBuild/install/lib"
|
2019-04-09 18:38:19 +00:00
|
|
|
|
|
|
|
# Prepare directories
|
|
|
|
WORKDIR /code
|
|
|
|
|
2020-02-29 00:54:26 +00:00
|
|
|
# Copy everything
|
|
|
|
COPY . ./
|
2019-09-16 22:36:51 +00:00
|
|
|
|
2020-09-16 14:04:51 +00:00
|
|
|
RUN PORTABLE_INSTALL=YES bash configure.sh install
|
2019-04-09 18:38:19 +00:00
|
|
|
|
|
|
|
# Cleanup APT
|
2020-02-29 00:54:26 +00:00
|
|
|
RUN apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2019-04-09 18:38:19 +00:00
|
|
|
|
|
|
|
# Clean Superbuild
|
|
|
|
RUN rm -rf \
|
|
|
|
/code/SuperBuild/build/opencv \
|
|
|
|
/code/SuperBuild/download \
|
|
|
|
/code/SuperBuild/src/ceres \
|
|
|
|
/code/SuperBuild/src/mvstexturing \
|
|
|
|
/code/SuperBuild/src/opencv \
|
|
|
|
/code/SuperBuild/src/opengv \
|
|
|
|
/code/SuperBuild/src/pcl \
|
2020-10-27 21:10:10 +00:00
|
|
|
/code/SuperBuild/src/pdal \
|
|
|
|
/code/SuperBuild/src/openmvs \
|
|
|
|
/code/SuperBuild/build/openmvs
|
2019-04-09 18:38:19 +00:00
|
|
|
|
|
|
|
# Entry point
|
2020-09-16 14:04:51 +00:00
|
|
|
ENTRYPOINT ["python3", "/code/run.py"]
|
2019-04-09 18:38:19 +00:00
|
|
|
|