From a938982bdcaa0cf17b33d05f2c7f1de8ce12e108 Mon Sep 17 00:00:00 2001 From: Aleksey Karpov <86011874+alekseyolg@users.noreply.github.com> Date: Wed, 15 Mar 2023 12:10:28 +0300 Subject: [PATCH] Update Dockerfile Divided the assembly image into parts --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac8a8063..73e663ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,10 +26,6 @@ FROM $BASE_IMAGE AS builder ENV DEBIAN_FRONTEND=noninteractive WORKDIR /src/jupyterhub -# copy everything except whats in .dockerignore, its a -# compromise between needing to rebuild and maintaining -# what needs to be part of the build -COPY . . RUN apt-get update \ && apt-get install -yq --no-install-recommends \ @@ -45,10 +41,14 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && python3 -m pip install --no-cache-dir --upgrade setuptools pip build wheel \ - && npm install --global yarn \ + && npm install --global yarn +# copy everything except whats in .dockerignore, its a +# compromise between needing to rebuild and maintaining +# what needs to be part of the build +COPY . . # Build client component packages (they will be copied into ./share and # packaged with the built wheel.) - && python3 -m build --wheel \ +RUN python3 -m build --wheel \ && python3 -m pip wheel --wheel-dir wheelhouse dist/*.whl FROM $BASE_IMAGE