ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
LABEL maintainer=vladimir@hodakov.me |
WORKDIR /var/www/html |
COPY /usr/bin/caddy /usr/bin/caddy # buildkit |
RUN /bin/sh -c apk add --no-cache curl imagemagick php84 php84-fpm php84-apache2 php84-ctype php84-curl php84-dom php84-ftp php84-gd php84-iconv php84-json php84-mbstring php84-mysqli php84-opcache php84-openssl php84-pgsql php84-sqlite3 php84-tokenizer php84-xml php84-zlib php84-zip supervisor # buildkit |
COPY config/Caddyfile /etc/caddy/Caddyfile # buildkit |
COPY config/fpm-pool.conf /etc/php84/php-fpm.d/www.conf # buildkit |
COPY config/php.ini /etc/php84/conf.d/custom.ini # buildkit |
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit |
RUN /bin/sh -c mkdir /.config /phpbb # buildkit |
COPY src/ /var/www/html/ # buildkit |
ENV PHPBB_VERSION=3.3.14 |
ENV PHPBB_SHA256=68cd6cf3faefa175ea3892ba02c6b112e8967ed33703521c79820e35bd15ec9a |
WORKDIR /tmp |
RUN /bin/sh -c curl -SL https://download.phpbb.com/pub/release/3.3/${PHPBB_VERSION}/phpBB-${PHPBB_VERSION}.tar.bz2 -o phpbb.tar.bz2 && echo "${PHPBB_SHA256} phpbb.tar.bz2" | sha256sum -c - && tar -xjf phpbb.tar.bz2 && mkdir /phpbb/sqlite && mv phpBB3 /phpbb/www && rm -f phpbb.tar.bz2 # buildkit |
COPY phpbb/config.php /phpbb/www # buildkit |
EXPOSE map[8080/tcp:{}] |
EXPOSE map[9080/tcp:{}] |
WORKDIR /phpbb/www |
ENV PHPBB_INSTALL= PHPBB_DB_DRIVER=sqlite3 PHPBB_DB_HOST=/phpbb/sqlite/sqlite.db PHPBB_DB_PORT= PHPBB_DB_NAME= PHPBB_DB_USER= PHPBB_DB_PASSWD= PHPBB_DB_TABLE_PREFIX=phpbb_ PHPBB_DB_AUTOMIGRATE= PHPBB_DISPLAY_LOAD_TIME= PHPBB_DEBUG= PHPBB_DEBUG_CONTAINER= |
VOLUME [/phpbb/sqlite] |
VOLUME [/phpbb/www/files] |
VOLUME [/phpbb/www/store] |
VOLUME [/phpbb/www/images/avatars/upload] |
COPY start.sh /usr/local/bin/ # buildkit |
CMD ["start.sh"] |
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:9080/fpm-ping"] "0s" "10s" "0s" "0s" '\x00'} |