cops/Dockerfile

46 lines
1016 B
Docker
Raw Normal View History

2018-11-27 07:31:02 +00:00
FROM thallian/php7-fpm:latest
2018-05-29 07:39:04 +00:00
ENV FPMUSER nginx
ENV FPMGROUP nginx
ENV VERSION f65537cdc6f11e135fdc0fbfcaf05524f63ec667
2018-05-29 07:39:04 +00:00
RUN apk add --no-cache \
libressl \
git \
nginx \
wget \
php7 \
php7-opcache \
php7-pcntl \
php7-gd \
php7-sqlite3 \
php7-json \
php7-intl \
php7-xml \
php7-mbstring \
php7-zip \
php7-openssl \
php7-phar \
php7-pdo_sqlite \
php7-ctype \
php7-xmlwriter \
php7-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
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