2020-05-19 10:01:48 +00:00
|
|
|
FROM php:7.3-alpine
|
2020-02-01 13:32:36 +00:00
|
|
|
|
2020-05-19 10:01:48 +00:00
|
|
|
# FOR ALPINE
|
|
|
|
# Install git and bash and procps
|
|
|
|
RUN apk add git bash procps
|
|
|
|
RUN apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS
|
2020-02-14 12:49:27 +00:00
|
|
|
|
2020-05-19 10:01:48 +00:00
|
|
|
# FOR DEBIAN/UBUNTU
|
|
|
|
#RUN apt-get update &&\
|
|
|
|
# apt-get install --no-install-recommends --assume-yes --quiet procps ca-certificates curl git unzip &&\
|
|
|
|
# rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Install Redis and XDebug
|
|
|
|
RUN pecl install redis && docker-php-ext-enable redis
|
2020-05-15 16:26:30 +00:00
|
|
|
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
2020-02-14 12:49:27 +00:00
|
|
|
|
|
|
|
# Install Composer
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|