FROM phpswoole/swoole:4.8-php7.4-alpine


RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
    echo /etc/apk/respositories && \
    apk update && apk upgrade &&\
    apk add --no-cache \
    bash \
    openssh-client \
    wget \
    supervisor \
    curl \
    libcurl \
    libpq \
    git \
    python3 \
    py3-pip \
    ca-certificates \
    dialog \
    autoconf \
    make \
    openssl-dev \
    libressl-dev \
    libzip-dev \
    bzip2-dev \
    icu-dev \
    gcc \
    g++

RUN pecl install redis-stable \
    && docker-php-ext-enable redis \
    && docker-php-ext-install zip


RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
    php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && \
    rm composer-setup.php

