fix(build): load NPM_REGISTRY from config

This commit is contained in:
Abderraouf Mehdi Bouhali 2022-12-31 11:00:07 +01:00 committed by Régis Behmo
parent 36bbec4a9e
commit c0fadf4faa

View File

@ -38,7 +38,7 @@ ENV PATH /openedx/nodeenv/bin:${PATH}
# This is identical to "make production-requirements" but it was split in multiple
# instructions to benefit from docker image caching
RUN pip install -r requirements.txt
ARG NPM_REGISTRY=https://registry.npmjs.org/
ARG NPM_REGISTRY={{ NPM_REGISTRY }}
RUN npm install --verbose --registry=$NPM_REGISTRY --production
RUN ./node_modules/.bin/bower install --allow-root --production