22 lines
643 B
Docker
22 lines
643 B
Docker
FROM alpine:latest
|
|
|
|
WORKDIR /goatcounter
|
|
|
|
ENV GOATCOUNTER_VERSION 'v2.2.3'
|
|
ENV GOATCOUNTER_TAG 'dev'
|
|
|
|
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"] |