2022-09-04 19:24:44 +00:00
|
|
|
FROM alpine:latest
|
2022-08-28 18:56:57 +00:00
|
|
|
|
|
|
|
WORKDIR /goatcounter
|
|
|
|
|
|
|
|
ENV GOATCOUNTER_VERSION 'v2.2.3'
|
|
|
|
ENV GOATCOUNTER_TAG 'dev'
|
|
|
|
|
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"]
|