diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index 684e414564..a41c062a87 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -146,20 +146,21 @@ FROM nodejs-requirements as pre-assets # Gather minimal sources for webpacking JS into bundles # Copy the entire source tree, and then delete everything that isn't relevant. FROM pre-assets as js-sources -COPY --link --from=edx-platform /webpack-config webpack-config -COPY --link --from=edx-platform /webpack.builtinblocks.config.js webpack.builtinblocks.config.js -COPY --link --from=edx-platform /webpack.common.config.js webpack.common.config.js -COPY --link --from=edx-platform /common common COPY --link --from=edx-platform /lms lms COPY --link --from=edx-platform /cms cms +COPY --link --from=edx-platform /common common COPY --link --from=edx-platform /openedx openedx +COPY --link --from=edx-platform /xmodule xmodule RUN npm run postinstall # Re-copy 'vendor' JS from node_modules into edx-platform source tree RUN find lms cms common openedx xmodule -type f -a \! \ - \( -path '*/static/*' \ - -o -path '*/assets/*' \ - -o -path '*/js/*' \ - -o -name '*.underscore' \ - \) -delete + \( -path '*/static/*' \ + -o -path '*/assets/*' \ + -o -path '*/js/*' \ + -o -name '*.underscore' \ + \) -delete +COPY --link --from=edx-platform /webpack-config webpack-config +COPY --link --from=edx-platform /webpack.builtinblocks.config.js webpack.builtinblocks.config.js +COPY --link --from=edx-platform /webpack.common.config.js webpack.common.config.js # Intermediate image to capture prod JS build FROM pre-assets as js-production