dockerfile 842 Bytes
Newer Older
1 2
FROM  php:7.2-alpine

3 4
COPY ./composer.sh /tmp/

5 6 7
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV PATH ./vendor/bin:/root/.composer/vendor/bin:$PATH

Claystation's avatar
Claystation committed
8 9 10
RUN chmod +x /tmp/*.sh \
    && sh /tmp/composer.sh \
    && mv composer.phar /usr/local/bin/composer
11
RUN composer global require "squizlabs/php_codesniffer=*"
Claystation's avatar
Claystation committed
12

Claystation's avatar
Claystation committed
13 14 15
RUN apk update \
    && apk upgrade \
    && apk add --no-cache git \
Claystation's avatar
Claystation committed
16
    openssh-client \
Claystation's avatar
Claystation committed
17 18
    nodejs \
    nodejs-npm \
19 20 21 22
    rsync \
    freetype-dev \
    libjpeg-turbo-dev \
    libpng-dev \
Claystation's avatar
Claystation committed
23 24 25 26
    && apk add --no-cache --virtual .build-deps \
    build-base \
    autoconf \
    && rm -rf /usr/share/man
27

28 29
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd
30

31
RUN pecl install xdebug \
Claystation's avatar
Claystation committed
32
    && docker-php-ext-enable xdebug
33

34 35
RUN apk del -f .build-deps

Claystation's avatar
Claystation committed
36
CMD ["php", "-a"]