YARN-10036. Install yarnpkg and upgrade nodejs in Dockerfile (#1772)

This commit is contained in:
Akira Ajisaka 2019-12-23 10:30:26 +09:00 committed by GitHub
parent e2a5448d2b
commit bc825b9628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 7 deletions

View File

@ -174,16 +174,23 @@ RUN pip2 install pylint==1.9.2
RUN pip2 install python-dateutil==2.7.3 RUN pip2 install python-dateutil==2.7.3
### ###
# Install node.js for web UI framework (4.2.6 ships with Xenial) # Install node.js 8.17.0 for web UI framework (4.2.6 ships with Xenial)
### ###
# hadolint ignore=DL3008, DL3016 RUN curl -L -s -S https://deb.nodesource.com/setup_8.x | bash - \
RUN apt-get -q update \ && apt-get install -y --no-install-recommends nodejs=8.17.0-1nodesource1 \
&& apt-get install -y --no-install-recommends nodejs npm \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/nodejs /usr/bin/node \ && npm install -g bower@1.8.8
&& npm install npm@latest -g \
&& npm install -g jshint ###
## Install Yarn 1.12.1 for web UI framework
####
RUN curl -s -S https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
&& apt-get -q update \
&& apt-get install -y --no-install-recommends yarn=1.12.1-1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
### ###
# Install hadolint # Install hadolint