Commit f06d3762 authored by ∞'s avatar 💻

Release PHP CI container

parent c8e4a8cb
Pipeline #2622 passed with stage
in 3 minutes and 3 seconds
FROM php:7-alpine
RUN apk update && apk --no-cache upgrade && apk --no-cache add curl bash git diffutils
RUN apk update && apk --no-cache upgrade && apk --no-cache add curl bash git diffutils icu-dev libxml2-dev curl-dev
RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN apk add $PHPIZE_DEPS && pecl install xdebug && docker-php-ext-enable xdebug
RUN docker-php-ext-install -j$(nproc) intl
RUN docker-php-ext-install -j$(nproc) pdo
RUN docker-php-ext-install -j$(nproc) pdo_mysql
......@@ -13,6 +11,11 @@ RUN docker-php-ext-install -j$(nproc) mbstring
RUN docker-php-ext-install -j$(nproc) simplexml
RUN docker-php-ext-install -j$(nproc) curl
RUN cd /usr/bin && curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php
RUN mkdir /app # standard docker path for custom code
WORKDIR /app
ENV COMPOSER_ALLOW_SUPERUSER 1
CMD php composer.phar install && vendor/bin/phpunit
CMD composer.phar install --no-interaction && vendor/bin/phpunit tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment