mirror of
https://github.com/dokuwiki/docker.git
synced 2025-07-23 02:54:48 +00:00

also: * fix environment syntax to preferred one * gh action: do not fail the whole matrix when one job fails
29 lines
548 B
Docker
29 lines
548 B
Docker
FROM php:8.3-apache AS dokuwiki-base
|
|
|
|
# additional extensions can be passed as build-arg
|
|
ARG PHP_EXTENSIONS=""
|
|
|
|
COPY root/build-deps.sh /
|
|
RUN /bin/bash /build-deps.sh
|
|
|
|
|
|
FROM dokuwiki-base
|
|
|
|
ARG DOKUWIKI_VERSION=stable
|
|
|
|
ENV PHP_UPLOADLIMIT=128M
|
|
ENV PHP_MEMORYLIMIT=256M
|
|
ENV PHP_TIMEZONE=UTC
|
|
|
|
COPY root /
|
|
RUN /bin/bash /build-setup.sh
|
|
|
|
VOLUME /storage
|
|
EXPOSE 8080
|
|
|
|
HEALTHCHECK --timeout=5s \
|
|
CMD curl --silent --fail-with-body http://localhost:8080/health.php || exit 1
|
|
|
|
RUN chmod +x /dokuwiki-entrypoint.sh
|
|
ENTRYPOINT ["/dokuwiki-entrypoint.sh"]
|