coreos-home-server/service/gotosocial/Containerfile

20 lines
930 B
Plaintext
Raw Normal View History

2023-12-20 23:11:27 +00:00
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
# renovate: datasource=github-releases depName=superseriousbusiness/gotosocial
2023-12-15 16:46:22 +00:00
ARG VERSION=0.13.0
ENV PACKAGE_URL https://github.com/superseriousbusiness/gotosocial/releases/download/v${VERSION}/gotosocial_${VERSION}_linux_amd64.tar.gz
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \
curl ca-certificates gettext gosu
RUN mkdir -p /opt/gotosocial && curl -L ${PACKAGE_URL} | tar -C /opt/gotosocial --no-same-owner -xvzf - && \
mv /opt/gotosocial/gotosocial /bin/gotosocial && chmod +x /bin/gotosocial
RUN addgroup --system --gid 10000 gotosocial
RUN adduser --system --uid 10000 --ingroup gotosocial --home /var/lib/gotosocial gotosocial
COPY container/config /etc/gotosocial
COPY container/run-gotosocial /run-gotosocial
EXPOSE 8080
ENTRYPOINT ["/run-gotosocial"]