From 2a35f3c68c4081b74f1fb91ce095e3b0c562a78b Mon Sep 17 00:00:00 2001 From: Nemo Date: Tue, 31 Oct 2023 23:42:46 +0530 Subject: [PATCH] [dep] Crystal Upgrade to 1.10.1 The Crystal Debian repo has moved, so we shift as well. Debian 10 is still supported, so use it for now --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 411927e..a95650d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /build COPY . . # Add the key for the crystal debian repo -ADD https://keybase.io/crystal/pgp_keys.asc /tmp/crystal.gpg +ADD https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_10/Release.key /tmp/crystal.key # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199 for why mkdir is needed RUN mkdir -p /usr/share/man/man1 && \ @@ -26,10 +26,12 @@ RUN mkdir -p /usr/share/man/man1 && \ # build --release zlib1g-dev && \ # See https://crystal-lang.org/install/ - apt-key add /tmp/crystal.gpg && \ - echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list && \ + echo "deb http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_10/ /" | tee /etc/apt/sources.list.d/crystal.list && \ + gpg --dearmor /tmp/crystal.key && \ + mv /tmp/crystal.key.gpg /etc/apt/trusted.gpg.d/crystal.gpg && \ + rm /tmp/crystal.key && \ apt-get update && \ - apt-get install --no-install-recommends --yes crystal=0.34.0-1 && \ + apt-get install --no-install-recommends --yes crystal && \ # Cleanup apt-get clean && \ rm -rf /var/lib/apt/lists/*