From 64ac783e9f47a98158fcfa5cfb4ca011ab7e37e2 Mon Sep 17 00:00:00 2001 From: "Kyle D. McCormick" Date: Mon, 17 Jul 2023 14:26:02 -0400 Subject: [PATCH] build: copy in copy-node-modules.sh for npm post-install hook This post-install hook replaces `openedx-assets npm`. Part of: https://github.com/openedx/edx-platform/issues/31604 --- tutor/templates/build/openedx/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index abfe968fd2..7231792a53 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -123,6 +123,7 @@ RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt # Install nodejs requirements ARG NPM_REGISTRY={{ NPM_REGISTRY }} WORKDIR /openedx/edx-platform +COPY --from=edx-platform scripts/copy-node-modules.sh scripts RUN {% if is_buildkit_enabled() %}--mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json \ --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json \ --mount=type=cache,target=/root/.npm,sharing=shared {% endif %}npm clean-install --no-audit --registry=$NPM_REGISTRY