diff --git a/contrib/build-wine/Dockerfile b/contrib/build-wine/Dockerfile index 7a7b88c33..8bd9738d1 100644 --- a/contrib/build-wine/Dockerfile +++ b/contrib/build-wine/Dockerfile @@ -38,15 +38,11 @@ RUN dpkg --add-architecture i386 && \ RUN DEBIAN_CODENAME=$(lsb_release --codename --short) && \ WINEVERSION="9.0.0.0~${DEBIAN_CODENAME}-1" && \ - wget -nc https://dl.winehq.org/wine-builds/Release.key && \ - echo "c51bcb8cc4a12abfbd7c7660eaf90f49674d15e222c262f27e6c96429111b822 Release.key" | sha256sum -c - && \ - apt-key add Release.key && \ - rm Release.key && \ wget -nc https://dl.winehq.org/wine-builds/winehq.key && \ echo "78b185fabdb323971d13bd329fefc8038e08559aa51c4996de18db0639a51df6 winehq.key" | sha256sum -c - && \ - apt-key add winehq.key && \ + cat winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq.gpg && \ + echo deb [signed-by=/etc/apt/keyrings/winehq.gpg] https://dl.winehq.org/wine-builds/debian/ ${DEBIAN_CODENAME} main >> /etc/apt/sources.list.d/winehq.list && \ rm winehq.key && \ - apt-add-repository https://dl.winehq.org/wine-builds/debian/ && \ apt-get update -q && \ apt-get install -qy --allow-downgrades \ wine-stable-amd64:amd64=${WINEVERSION} \