cops/Dockerfile
2021-06-20 12:29:36 +02:00

46 lines
1015 B
Docker

FROM thallian/php8-fpm:latest
ENV FPMUSER nginx
ENV FPMGROUP nginx
ENV VERSION f65537cdc6f11e135fdc0fbfcaf05524f63ec667
RUN apk add --no-cache \
openssl \
git \
nginx \
wget \
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
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
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"
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