fly-apps/goatcounter/Dockerfile

22 lines
658 B
Docker
Raw Permalink Normal View History

FROM alpine:latest
WORKDIR /goatcounter
ENV GOATCOUNTER_VERSION 'v2.4.1'
ENV GOATCOUNTER_TAG $GOATCOUNTER_VERSION
RUN apk add --no-cache ca-certificates wget bash \
&& update-ca-certificates --fresh
RUN wget "https://github.com/arp242/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/local/bin/goatcounter \
&& chmod +x /usr/local/bin/goatcounter
COPY goatcounter.sh ./
COPY entrypoint.sh /entrypoint.sh
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/goatcounter/goatcounter.sh"]