Skip to content

Commit 96ea6a4

Browse files
authored
feat: use npm to install yarn (#129)
1 parent 5f540be commit 96ea6a4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
5050
&& gem install bundler \
5151
&& rm -rf /var/lib/apt/lists/*;
5252

53-
# Refresh keys to prevent invalid signature
54-
RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
55-
56-
# install nodejs and yarn packages from nodesource and yarn apt sources
53+
# install nodejs and yarn packages from nodesource
5754
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - \
58-
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
59-
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
6055
&& apt-get update -qq \
61-
&& apt-get install -qq -y --no-install-recommends nodejs yarn \
56+
&& apt-get install -qq -y --no-install-recommends nodejs \
57+
&& npm i -g yarn \
6258
&& rm -rf /var/lib/apt/lists/*
6359

6460
# download and install buck using debian package

0 commit comments

Comments
 (0)