ADD file:80331a5d882ac8a70763f4b19e06f2e04ea3dca34ae6d92810815b170b3c806c in / |
CMD ["/bin/sh"] |
LABEL Maintainer=lefuturiste |
LABEL Description=Paheko on Alpine Linux with Docker |
ARG PAHEKO_VERSION=1.3.4 |
VOLUME [/var/www/paheko/data] |
WORKDIR /var/www/ |
RUN |1 PAHEKO_VERSION=1.3.4 /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.4 /bin/sh -c apk add --no-cache git make php81-dev build-base gpgme-dev # buildkit |
WORKDIR /tmp |
RUN |1 PAHEKO_VERSION=1.3.4 /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.4 /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.4 /bin/sh -c tar xf paheko-${PAHEKO_VERSION}.tar.gz # buildkit |
RUN |1 PAHEKO_VERSION=1.3.4 /bin/sh -c rm -rf *.tar.gz # buildkit |
RUN |1 PAHEKO_VERSION=1.3.4 /bin/sh -c mv paheko-${PAHEKO_VERSION} /var/www/paheko # buildkit |
RUN |1 PAHEKO_VERSION=1.3.4 /bin/sh -c echo ${PAHEKO_VERSION} > /paheko_version # buildkit |
RUN |1 PAHEKO_VERSION=1.3.4 /bin/sh -c cat /var/www/paheko/VERSION # buildkit |
RUN |1 PAHEKO_VERSION=1.3.4 /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.4 /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.4 /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'} |