Browse Source

Fix: Apt import keyring Yarn

master
Siroco 3 months ago
parent
commit
32b1d97d77
Signed by: siroco GPG Key ID: 1324098302A514B0
  1. 6
      Dockerfile

6
Dockerfile

@ -12,9 +12,11 @@ ARG GANCIO_VERSION=master
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
COPY pubkey.gpg /usr/share/keyrings/yarn.gpg
COPY pubkey.gpg /usr/local/share/keyrings/yarn.gpg
RUN cat /usr/share/keyrings/yarn.gpg | apt-key add -
RUN gpg --no-default-keyring --keyring ./yarn_keyring.gpg --import /usr/local/share/keyrings/yarn.gpg && \
gpg --no-default-keyring --keyring ./yarn_keyring.gpg --export > ./yarn-archive-keyring.gpg && \
mv ./yarn-archive-keyring.gpg /etc/apt/trusted.gpg.d/
RUN apt-get update && \
apt-get install -y --no-install-recommends yarn

Loading…
Cancel
Save