mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
19 lines
779 B
Docker
19 lines
779 B
Docker
FROM docker.io/debian:bookworm-slim
|
|
ARG VERSION=0.12.1
|
|
|
|
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"]
|