diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index abfe968fd2c..a9c08dbe5f9 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -123,6 +123,8 @@ RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt # Install nodejs requirements ARG NPM_REGISTRY={{ NPM_REGISTRY }} WORKDIR /openedx/edx-platform +RUN mkdir -p scripts +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 @@ -205,7 +207,6 @@ ENV NO_PREREQ_INSTALL 1 # For instance, we don't want to run all steps of asset collection every time the theme # is modified. RUN openedx-assets xmodule \ - && openedx-assets npm \ && openedx-assets webpack --env=prod \ && openedx-assets common COPY --chown=app:app ./themes/ /openedx/themes/