diff --git a/.dockerignore b/.dockerignore index a4471aff..a1669984 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,7 @@ !runtime !runtime-desktop !requirements.txt +!requirements-desktop.txt !Pipfile* !cache !package.json diff --git a/Dockerfile b/Dockerfile index 72af98fb..6a3b29fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -221,6 +221,11 @@ RUN --mount=type=cache,target=/var/lib/apt/lists,id=apt-list \ qt3d-assimpsceneimport-plugin qt3d-defaultgeometryloader-plugin qt3d-gltfsceneio-plugin \ qt3d-scene2d-plugin +COPY requirements-desktop.txt ./ +RUN --mount=type=cache,target=/root/.cache,id=root-cache \ + python3 -m pip install --disable-pip-version-check --requirement=requirements-desktop.txt && \ + rm --recursive --force /tmp/* + COPY --from=builder-desktop /usr/local/bin /usr/local/bin/ COPY --from=builder-desktop /usr/local/lib /usr/local/lib/ COPY --from=builder-desktop /usr/local/share /usr/local/share/ diff --git a/requirements-desktop.txt b/requirements-desktop.txt new file mode 100644 index 00000000..92321a77 --- /dev/null +++ b/requirements-desktop.txt @@ -0,0 +1 @@ +lxml==4.8.0