Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # locked PySide2==5.14.1 requires python<3.9
  2. # https://github.com/alicevision/meshroom/blob/8d0cd745811320ab27245eabb56997b00ba3a70e/requirements.txt#L4
  3. FROM python:3.8-slim-buster
  4. ARG MESHROOM_PATH=/meshroom
  5. # > ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
  6. # > ImportError: libGL.so.1: cannot open shared object file: No such file or directory
  7. # > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
  8. RUN apt-get update \
  9. && apt-get install --yes --no-install-recommends \
  10. git \
  11. libfontconfig1 \
  12. libgl1 \
  13. libglib2.0-0 \
  14. libqt5gui5 \
  15. && rm -r /var/lib/apt/lists \
  16. && useradd --create-home mesh \
  17. && mkdir $MESHROOM_PATH \
  18. && chown mesh $MESHROOM_PATH
  19. USER mesh
  20. WORKDIR $MESHROOM_PATH
  21. ARG MESHROOM_REVISION=8d0cd745811320ab27245eabb56997b00ba3a70e
  22. RUN git clone --recursive https://github.com/alicevision/meshroom.git . \
  23. && git checkout $MESHROOM_REVISION
  24. RUN pip install --user --requirement requirements.txt
  25. ENV PYTHONPATH=$MESHROOM_PATH
  26. CMD ["python", "meshroom/ui"]