fly-apps/goatcounter/Dockerfile

22 lines
658 B
Docker
Raw Permalink Normal View History

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
RUN apk add --no-cache ca-certificates wget bash \
2022-08-28 18:56:57 +00:00
&& update-ca-certificates --fresh
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" \
&& 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"]