Skip to content

Commit 703e9c9

Browse files
authored
Merge pull request #697 from slovensko-digital/build/use-trusted-gpg-d-instead-of-apt-key-for-yarn
build: use trusted.gpg.d instead of apt-key for yarn
2 parents 248689a + 25a5467 commit 703e9c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM ruby:3.2.9
22

33
# Install packages
44
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
5-
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
5+
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | \
6+
gpg --dearmor | \
7+
tee /etc/apt/trusted.gpg.d/yarn.gpg > /dev/null
68
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
79
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
810
build-essential \

0 commit comments

Comments
 (0)