mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
gotosocial: Use ADD, not curl, in package download
This commit is contained in:
parent
30217f74a8
commit
a43f5a0c1f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user