-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from crazy-max/update-5
Matomo 5.0.3
- Loading branch information
Showing
5 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG MATOMO_VERSION=5.0.3 | ||
ARG ALPINE_VERSION=3.19 | ||
|
||
FROM crazymax/yasu:latest AS yasu | ||
FROM --platform=${BUILDPLATFORM:-linux/amd64} crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 AS download | ||
RUN apk --update --no-cache add curl tar unzip xz | ||
|
||
ARG MATOMO_VERSION | ||
WORKDIR /dist/matomo | ||
RUN curl -sSL "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz" | tar xz matomo --strip 1 | ||
RUN curl -sSL "https://matomo.org/wp-content/uploads/unifont.ttf.zip" -o "unifont.ttf.zip" | ||
RUN unzip "unifont.ttf.zip" -d "./plugins/ImageGraph/fonts/" | ||
RUN rm -f "unifont.ttf.zip" | ||
|
||
WORKDIR /dist/mmdb | ||
RUN curl -SsOL "https://github.com/crazy-max/geoip-updater/raw/mmdb/GeoLite2-ASN.mmdb" \ | ||
&& curl -SsOL "https://github.com/crazy-max/geoip-updater/raw/mmdb/GeoLite2-City.mmdb" \ | ||
&& curl -SsOL "https://github.com/crazy-max/geoip-updater/raw/mmdb/GeoLite2-Country.mmdb" | ||
|
||
FROM crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 | ||
|
||
COPY --from=yasu / / | ||
COPY --from=download --chown=nobody:nogroup /dist/matomo /var/www/matomo | ||
COPY --from=download --chown=nobody:nogroup /dist/mmdb /var/mmdb | ||
|
||
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS="2" \ | ||
TZ="UTC" \ | ||
PUID="1000" \ | ||
PGID="1000" \ | ||
MATOMO_PLUGIN_DIRS="/var/www/matomo/data-plugins/;data-plugins" \ | ||
MATOMO_PLUGIN_COPY_DIR="/var/www/matomo/data-plugins/" | ||
|
||
RUN apk --update --no-cache add \ | ||
bash \ | ||
ca-certificates \ | ||
curl \ | ||
libmaxminddb \ | ||
nginx \ | ||
openssl \ | ||
php82 \ | ||
php82-bcmath \ | ||
php82-cli \ | ||
php82-ctype \ | ||
php82-curl \ | ||
php82-dom \ | ||
php82-iconv \ | ||
php82-fpm \ | ||
php82-gd \ | ||
php82-gmp \ | ||
php82-json \ | ||
php82-ldap \ | ||
php82-mbstring \ | ||
php82-opcache \ | ||
php82-openssl \ | ||
php82-pdo \ | ||
php82-pdo_mysql \ | ||
php82-pecl-maxminddb \ | ||
php82-redis \ | ||
php82-session \ | ||
php82-simplexml \ | ||
php82-xml \ | ||
php82-zlib \ | ||
rsync \ | ||
shadow \ | ||
tzdata \ | ||
&& addgroup -g ${PGID} matomo \ | ||
&& adduser -D -H -u ${PUID} -G matomo -h /var/www/matomo -s /bin/sh matomo \ | ||
&& rm -rf /tmp/* | ||
|
||
COPY rootfs / | ||
|
||
EXPOSE 8000 | ||
VOLUME [ "/data" ] | ||
|
||
ENTRYPOINT [ "/init" ] | ||
|
||
HEALTHCHECK --interval=30s --timeout=20s --start-period=10s \ | ||
CMD /usr/local/bin/healthcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters