FROM debian:bookworm-slim WORKDIR /goatcounter ENV GOATCOUNTER_VERSION 'v2.2.3' ENV GOATCOUNTER_TAG 'dev' ENV GOATCOUNTER_LISTEN '0.0.0.0:8080' ENV GOATCOUNTER_DB 'sqlite+/data/goatcounter.sqlite3' ENV GOATCOUNTER_SMTP '' RUN apt-get update \ && apt-get install -y ca-certificates ncat wget \ && update-ca-certificates --fresh RUN wget "https://github.com/zgoat/goatcounter/releases/download/$GOATCOUNTER_VERSION/goatcounter-$GOATCOUNTER_TAG-linux-amd64.gz" \ && gzip -d "goatcounter-$GOATCOUNTER_TAG-linux-amd64.gz" \ && mv "goatcounter-$GOATCOUNTER_TAG-linux-amd64" /usr/bin/goatcounter \ && chmod +x /usr/bin/goatcounter COPY goatcounter.sh ./ COPY entrypoint.sh /entrypoint.sh EXPOSE 8080 ENTRYPOINT ["/entrypoint.sh"] CMD ["/goatcounter/goatcounter.sh"]