2021-01-26 03:16:32 +08:00
|
|
|
FROM instructure/node:14
|
2019-11-05 00:50:48 +08:00
|
|
|
|
|
|
|
ARG NPM_PRIVATE_SCOPE
|
|
|
|
ARG NPM_PRIVATE_REGISTRY
|
|
|
|
ARG NPM_PRIVATE_USERNAME
|
|
|
|
ARG NPM_PRIVATE_PASSWORD
|
|
|
|
ARG NPM_PRIVATE_EMAIL
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2022-01-29 05:06:09 +08:00
|
|
|
&& apt-get install -y jq python openssh-client git awscli \
|
2019-11-05 00:50:48 +08:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
|
2021-03-02 02:42:47 +08:00
|
|
|
RUN npm install -g npm@latest && npm cache clean --force
|
2019-11-05 00:50:48 +08:00
|
|
|
|
|
|
|
# do this first so yarn install can be cached if package.json has not changed
|
2022-03-10 22:39:59 +08:00
|
|
|
COPY --chown=docker:docker package.json yarn.lock /usr/src/app/
|
2019-11-05 00:50:48 +08:00
|
|
|
COPY --chown=docker:docker packages/ /usr/src/app/packages/
|
|
|
|
COPY --chown=docker:docker script/install_hooks /usr/src/app/script/
|
2021-06-30 22:24:49 +08:00
|
|
|
COPY --chown=docker:docker script/fix_inst_esm.js /usr/src/app/script/fix_inst_esm.js
|
2019-11-05 00:50:48 +08:00
|
|
|
COPY --chown=docker:docker build/new-jenkins/package-translations/ /usr/src/app/package-translations
|
|
|
|
|
2021-10-18 23:08:48 +08:00
|
|
|
USER docker
|
|
|
|
|
2021-10-19 23:15:38 +08:00
|
|
|
RUN yarn install --network-concurrency 1 \
|
|
|
|
&& DISABLE_POSTINSTALL=1 \
|
|
|
|
yarn-private --network-concurrency 1 -W \
|
|
|
|
add @inst/sync-format-message-translations
|
2019-11-05 00:50:48 +08:00
|
|
|
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|