2021-06-20 10:29:36 +00:00
|
|
|
FROM thallian/php8-fpm:latest
|
2018-05-29 07:39:04 +00:00
|
|
|
|
|
|
|
ENV FPMUSER nginx
|
|
|
|
ENV FPMGROUP nginx
|
|
|
|
|
2020-12-01 10:35:16 +00:00
|
|
|
ENV VERSION f65537cdc6f11e135fdc0fbfcaf05524f63ec667
|
2018-05-29 07:39:04 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
2021-06-20 10:29:36 +00:00
|
|
|
openssl \
|
2018-05-29 07:39:04 +00:00
|
|
|
git \
|
|
|
|
nginx \
|
|
|
|
wget \
|
2021-06-20 10:29:36 +00:00
|
|
|
php8 \
|
|
|
|
php8-opcache \
|
|
|
|
php8-pcntl \
|
|
|
|
php8-gd \
|
|
|
|
php8-sqlite3 \
|
|
|
|
php8-json \
|
|
|
|
php8-intl \
|
|
|
|
php8-xml \
|
|
|
|
php8-mbstring \
|
|
|
|
php8-zip \
|
|
|
|
php8-openssl \
|
|
|
|
php8-phar \
|
|
|
|
php8-pdo_sqlite \
|
|
|
|
php8-ctype \
|
|
|
|
php8-xmlwriter \
|
|
|
|
php8-dom
|
2018-05-29 07:39:04 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/share/webapps/cops
|
|
|
|
RUN wget -qO- https://github.com/seblucas/cops/archive/$VERSION.tar.gz | tar xz -C /usr/share/webapps/cops --strip 1
|
|
|
|
|
|
|
|
WORKDIR /usr/share/webapps/cops
|
2020-07-26 10:38:49 +00:00
|
|
|
RUN wget https://getcomposer.org/download/1.9.0/composer.phar
|
|
|
|
RUN php composer.phar --no-plugins global require "fxp/composer-asset-plugin:~1.1"
|
2018-05-29 07:39:04 +00:00
|
|
|
RUN php composer.phar install --no-dev --optimize-autoloader
|
|
|
|
|
|
|
|
RUN chown -R nginx:nginx /usr/share/webapps/cops
|
|
|
|
|
|
|
|
RUN mkdir /run/nginx
|
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
ADD /rootfs /
|
|
|
|
|
|
|
|
VOLUME /var/lib/cops/calibre
|