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 17, 2023
1 parent b3ef12c commit bdce02a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdce02a

Please sign in to comment.