2023-12-30 18:41:11 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 AS builder
|
|
|
|
ARG VERSION=0.13.0 # renovate: datasource=github-releases depName=superseriousbusiness/gotosocial extractVersion=^v(?<version>.*)$
|
|
|
|
WORKDIR /src
|
2023-12-31 12:29:09 +00:00
|
|
|
|
|
|
|
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 && \
|
2023-12-30 18:41:11 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y && \
|
|
|
|
apt-get install -y --no-install-recommends ca-certificates gettext gosu
|
2022-11-27 16:25:53 +00:00
|
|
|
|
2023-12-30 18:41:11 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends curl
|
|
|
|
RUN adduser --system --group --uid 10000 --home /var/lib/gotosocial gotosocial
|
2022-11-27 16:25:53 +00:00
|
|
|
|
2023-12-30 18:41:11 +00:00
|
|
|
COPY --from=builder /build /
|
2022-11-27 16:25:53 +00:00
|
|
|
COPY container/config /etc/gotosocial
|
|
|
|
COPY container/run-gotosocial /run-gotosocial
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/run-gotosocial"]
|