wp_back/wp-content/plugins/wp-asset-clean-up/vendor/matthiasmullie/minify/Dockerfile
2024-05-20 15:37:46 +03:00

16 lines
756 B
Docker

ARG VERSION=cli
FROM php:$VERSION
COPY . /var/www
WORKDIR /var/www
RUN cat /etc/os-release | grep jessie && echo "deb http://archive.debian.org/debian jessie main" > /etc/apt/sources.list || true
RUN cat /etc/os-release | grep stretch && echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list || true
RUN apt-get update
RUN apt-get install --reinstall -y --force-yes ca-certificates
RUN apt-get install -y --force-yes zip unzip libzip-dev git
RUN docker-php-ext-install zip pcntl
RUN pecl install xdebug || pecl install xdebug-3.1.6 || pecl install xdebug-2.7.2 && docker-php-ext-enable xdebug || true
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install