Browse Source

merge some layers

Fabian Peter Hammerle 3 years ago
parent
commit
55f811c7a9
1 changed files with 9 additions and 12 deletions
  1. 9 12
      Dockerfile

+ 9 - 12
Dockerfile

@@ -3,8 +3,16 @@
 FROM python:3.8-slim-buster
 
 ARG MESHROOM_PATH=/meshroom
+# > ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
+# > ImportError: libGL.so.1: cannot open shared object file: No such file or directory
+# > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
 RUN apt-get update \
-    && apt-get install --yes --no-install-recommends git \
+    && apt-get install --yes --no-install-recommends \
+        git \
+        libfontconfig1 \
+        libgl1 \
+        libglib2.0-0 \
+        libqt5gui5 \
     && rm -r /var/lib/apt/lists \
     && useradd --create-home mesh \
     && mkdir $MESHROOM_PATH \
@@ -17,16 +25,5 @@ RUN git clone --recursive https://github.com/alicevision/meshroom.git . \
     && git checkout $MESHROOM_REVISION
 RUN pip install --user --requirement requirements.txt
 
-# TODO merge up
-USER root
-# > ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
-# > ImportError: libGL.so.1: cannot open shared object file: No such file or directory
-# > qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-RUN apt-get update \
-    && apt-get install --yes --no-install-recommends libglib2.0-0 libgl1
-RUN apt-get update \
-    && apt-get install --yes --no-install-recommends libqt5gui5 libfontconfig1
-USER mesh
-
 ENV PYTHONPATH=$MESHROOM_PATH
 CMD ["python", "meshroom/ui"]