forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.package-translations
32 lines (24 loc) · 1.03 KB
/
Dockerfile.package-translations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM instructure/node:16
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 python openssh-client git awscli \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
RUN npm install -g npm@latest && 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/
COPY --chown=docker:docker script/fix_inst_esm.js /usr/src/app/script/fix_inst_esm.js
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"]