gotosocial: Use ADD, not curl, in package download

This commit is contained in:
Alex Palaistras 2023-12-31 12:29:09 +00:00
parent 30217f74a8
commit a43f5a0c1f

View File

@ -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(?<version>.*)$
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