Skip to content

Commit

Permalink
fix: copy-node-modules error with buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
regisb committed Jul 21, 2023
1 parent e4ddee2 commit 98d7532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ 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=bind,from=edx-platform,source=/scripts/copy-node-modules.sh,target=/openedx/edx-platform/scripts/copy-node-modules.sh \
--mount=type=cache,target=/root/.npm,sharing=shared {% endif %}npm clean-install --no-audit --registry=$NPM_REGISTRY

###### Production image with system and python requirements
Expand Down

0 comments on commit 98d7532

Please sign in to comment.