Skip to content

Commit

Permalink
build: copy in copy-node-modules.sh for npm post-install hook
Browse files Browse the repository at this point in the history
This post-install hook replaces `openedx-assets npm`.

Part of: openedx/edx-platform#31604
  • Loading branch information
kdmccormick committed Jul 18, 2023
1 parent b3ef12c commit 64ac783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64ac783

Please sign in to comment.