6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-13 00:36:30 +00:00

improvement: faster build with npm ci

This commit is contained in:
Régis Behmo 2023-03-13 16:41:36 +01:00 committed by Régis Behmo
parent f42abe18ad
commit ff5357cdc0
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Improvement] Faster build with `npm clean-install` instead of `npm install` in the openedx Docker image. This may change the version of npm packages installed next to edx-platform. (by @regisb)

View File

@ -119,7 +119,7 @@ ARG NPM_REGISTRY={{ NPM_REGISTRY }}
COPY --from=code /openedx/edx-platform/package.json /openedx/edx-platform/package.json
COPY --from=code /openedx/edx-platform/package-lock.json /openedx/edx-platform/package-lock.json
WORKDIR /openedx/edx-platform
RUN npm install --verbose --registry=$NPM_REGISTRY
RUN npm clean-install --verbose --registry=$NPM_REGISTRY
###### Production image with system and python requirements
FROM minimal as production