mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-04 19:03:39 +00:00
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
This commit is contained in:
parent
b3ef12c3fd
commit
e4ddee2604
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user