32 lines
964 B
Docker
32 lines
964 B
Docker
FROM instructure/node:18
|
|
|
|
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 \
|
|
&& apt-get install -y jq openssh-client git awscli \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
|
|
RUN npm install -g npm@9.8.1 && npm cache clean --force
|
|
|
|
# do this first so yarn install can be cached if package.json has not changed
|
|
COPY --chown=docker:docker package.json yarn.lock /usr/src/app/
|
|
COPY --chown=docker:docker packages/ /usr/src/app/packages/
|
|
COPY --chown=docker:docker script/install_hooks /usr/src/app/script/
|
|
|
|
USER docker
|
|
|
|
RUN yarn install --network-concurrency 1 \
|
|
&& DISABLE_POSTINSTALL=1 \
|
|
yarn-private --network-concurrency 1 -W \
|
|
add @inst/sync-format-message-translations
|
|
|
|
COPY --chown=docker:docker build/new-jenkins/package-translations/ /usr/src/app/package-translations
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|