FROM docker.io/thallian/php8-fpm:3.19-8.3 ENV FPMUSER nginx ENV FPMGROUP nginx ENV VERSION 2.5.0 RUN apk add --no-cache \ openssl \ git \ nginx \ wget \ php83 \ php83-opcache \ php83-pcntl \ php83-gd \ php83-sqlite3 \ php83-json \ php83-intl \ php83-xml \ php83-mbstring \ php83-zip \ php83-openssl \ php83-phar \ php83-pdo_sqlite \ php83-ctype \ php83-xmlwriter \ php83-dom RUN mkdir -p /usr/share/webapps/cops RUN wget -qO- https://github.com/mikespub-org/seblucas-cops/archive/$VERSION.tar.gz | tar xz -C /usr/share/webapps/cops --strip 1 WORKDIR /usr/share/webapps/cops ENV COMPOSER_HASH=72600201c73c7c4b218f1c0511b36d8537963e36aafa244757f52309f885b314 RUN wget https://getcomposer.org/download/2.6.6/composer.phar RUN echo "$COMPOSER_HASH composer.phar" | sha256sum -c - || exit 1 RUN php83 composer.phar install --no-dev --optimize-autoloader RUN chown -R nginx:nginx /usr/share/webapps/cops ADD /rootfs / VOLUME /var/lib/cops/calibre