2022-09-04 19:24:44 +00:00
|
|
|
FROM alpine:latest
|
2022-08-28 18:56:57 +00:00
|
|
|
|
|
|
|
WORKDIR /goatcounter
|
|
|
|
|
2023-03-11 22:39:22 +00:00
|
|
|
ENV GOATCOUNTER_VERSION 'v2.4.1'
|
|
|
|
ENV GOATCOUNTER_TAG $GOATCOUNTER_VERSION
|
2022-08-28 18:56:57 +00:00
|
|
|
|
2022-09-04 19:24:44 +00:00
|
|
|
RUN apk add --no-cache ca-certificates wget bash \
|
2022-08-28 18:56:57 +00:00
|
|
|
&& update-ca-certificates --fresh
|
|
|
|
|
2022-09-04 19:24:44 +00:00
|
|
|
RUN wget "https://github.com/arp242/goatcounter/releases/download/$GOATCOUNTER_VERSION/goatcounter-$GOATCOUNTER_TAG-linux-amd64.gz" \
|
2022-08-28 18:56:57 +00:00
|
|
|
&& gzip -d "goatcounter-$GOATCOUNTER_TAG-linux-amd64.gz" \
|
2022-09-04 19:24:44 +00:00
|
|
|
&& mv "goatcounter-$GOATCOUNTER_TAG-linux-amd64" /usr/local/bin/goatcounter \
|
|
|
|
&& chmod +x /usr/local/bin/goatcounter
|
2022-08-28 18:56:57 +00:00
|
|
|
|
|
|
|
COPY goatcounter.sh ./
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["/goatcounter/goatcounter.sh"]
|