Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed May 31, 2024
1 parent d3523a0 commit 46b8f65
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46b8f65

Please sign in to comment.