зеркало из https://github.com/mono/docker.git
Try Tianon's approach to GPG
This commit is contained in:
Родитель
62317eb8f1
Коммит
d68573b064
|
@ -5,7 +5,16 @@ FROM debian:stretch-slim
|
|||
|
||||
ENV MONO_VERSION 5.16.0.220
|
||||
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gnupg dirmngr \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
|
||||
&& gpg --batch --export --armor 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF > /etc/apt/trusted.gpg.d/mono.gpg.asc \
|
||||
&& gpgconf --kill all \
|
||||
&& rm -rf "$GNUPGHOME" \
|
||||
&& apt-key list | grep Xamarin \
|
||||
&& apt-get purge -y --auto-remove gnupg dirmngr
|
||||
|
||||
RUN echo "deb http://download.mono-project.com/repo/debian stable-stretch/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official-stable.list \
|
||||
&& apt-get update \
|
||||
|
|
|
@ -5,7 +5,16 @@ FROM debian:stretch-slim
|
|||
|
||||
ENV MONO_VERSION 5.18.0.225
|
||||
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gnupg dirmngr \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& export GNUPGHOME="$(mktemp -d)" \
|
||||
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
|
||||
&& gpg --batch --export --armor 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF > /etc/apt/trusted.gpg.d/mono.gpg.asc \
|
||||
&& gpgconf --kill all \
|
||||
&& rm -rf "$GNUPGHOME" \
|
||||
&& apt-key list | grep Xamarin \
|
||||
&& apt-get purge -y --auto-remove gnupg dirmngr
|
||||
|
||||
RUN echo "deb http://download.mono-project.com/repo/debian stable-stretch/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official-stable.list \
|
||||
&& apt-get update \
|
||||
|
|
Загрузка…
Ссылка в новой задаче