mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 14:43:03 +00:00
improvement: faster build with npm ci
This commit is contained in:
parent
f42abe18ad
commit
ff5357cdc0
1
changelog.d/20230313_163942_regis_docker_optimize.md
Normal file
1
changelog.d/20230313_163942_regis_docker_optimize.md
Normal 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)
|
@ -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.json /openedx/edx-platform/package.json
|
||||||
COPY --from=code /openedx/edx-platform/package-lock.json /openedx/edx-platform/package-lock.json
|
COPY --from=code /openedx/edx-platform/package-lock.json /openedx/edx-platform/package-lock.json
|
||||||
WORKDIR /openedx/edx-platform
|
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
|
###### Production image with system and python requirements
|
||||||
FROM minimal as production
|
FROM minimal as production
|
||||||
|
Loading…
Reference in New Issue
Block a user