From a43f5a0c1f2be26469797de47eed6e2b0e4d1515 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Sun, 31 Dec 2023 12:29:09 +0000 Subject: [PATCH] gotosocial: Use ADD, not curl, in package download --- service/gotosocial/Containerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/service/gotosocial/Containerfile b/service/gotosocial/Containerfile index 3a62609..ac7979e 100644 --- a/service/gotosocial/Containerfile +++ b/service/gotosocial/Containerfile @@ -1,12 +1,9 @@ FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 AS builder -RUN apt-get update -y && apt-get install -y --no-install-recommends \ - ca-certificates curl - ARG VERSION=0.13.0 # renovate: datasource=github-releases depName=superseriousbusiness/gotosocial extractVersion=^v(?.*)$ -ENV PACKAGE_URL https://github.com/superseriousbusiness/gotosocial/releases/download/v${VERSION}/gotosocial_${VERSION}_linux_amd64.tar.gz - WORKDIR /src -RUN curl --fail --silent --show-error --location ${PACKAGE_URL} | tar --no-same-owner -xvzf - && \ + +ADD https://github.com/superseriousbusiness/gotosocial/releases/download/v${VERSION}/gotosocial_${VERSION}_linux_amd64.tar.gz /src.tar.gz +RUN tar --no-same-owner -xvzf /src.tar.gz && \ install -D --mode 0755 /src/gotosocial /build/usr/bin/gotosocial && \ mkdir -p /build/usr/share/gotosocial && cp -R /src/web /build/usr/share/gotosocial/web