ADD file:6dd87346b8be240b21b4f4d9296253bf0d28b6579aa52d2118872e3936963b6b in / |
CMD ["/bin/sh"] |
LABEL Maintainer=lefuturiste |
LABEL Description=Paheko on Alpine Linux with Docker |
ARG PAHEKO_VERSION=1.3.0-rc10 |
VOLUME [/var/www/paheko/data] |
WORKDIR /var/www/ |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c apk add --no-cache curl nginx php81 php81-ctype php81-curl php81-dom php81-fpm php81-gd php81-intl php81-mbstring php81-opcache php81-openssl php81-phar php81-session php81-sqlite3 php81-pdo_sqlite php81-fileinfo php81-json php81-openssl php81-xml php81-xmlreader php81-zlib php81-zip supervisor gettext # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c apk add --no-cache git make php81-dev build-base gpgme-dev # buildkit |
WORKDIR /tmp |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c git clone --recursive https://github.com/php-gnupg/php-gnupg.git && cd php-gnupg && phpize && ./configure && make && make install # buildkit |
WORKDIR /var/www/ |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c curl -v -L -O "https://fossil.kd2.org/paheko/uv/paheko-${PAHEKO_VERSION}.tar.gz" # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c tar xf paheko-${PAHEKO_VERSION}.tar.gz # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c rm -rf *.tar.gz # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c mv paheko-${PAHEKO_VERSION} /var/www/paheko # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c echo ${PAHEKO_VERSION} > /paheko_version # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c cat /var/www/paheko/VERSION # buildkit |
COPY ./patchs /patchs # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c cd paheko && patch -p1 < /patchs/plugins.patch # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c cd /var/www/paheko/data/plugins && curl -L -O https://fossil.kd2.org/paheko-plugins/uv/helloasso.tar.gz # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c rm /etc/nginx/http.d/default.conf # remove this file because it listens on port 80 and it blocks other vhost # buildkit |
COPY config/nginx-paheko.conf /etc/nginx/http.d # buildkit |
COPY config/fpm-paheko.conf /etc/php81/php-fpm.d/ # buildkit |
COPY config/php-custom.ini /etc/php81/conf.d/custom.ini # buildkit |
COPY config/supervisord.conf /etc/supervisord.conf # buildkit |
RUN |1 PAHEKO_VERSION=1.3.0-rc10 /bin/sh -c chown -R nobody: /run /var/lib/nginx /var/log/nginx /var/www/paheko # buildkit |
USER nobody |
EXPOSE map[80/tcp:{}] |
CMD ["/usr/bin/supervisord" "-c" "/etc/supervisord.conf"] |
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:8080/fpm-ping"] "0s" "10s" "0s" '\x00'} |