Basic image with php7.3.0 and some usefull tools
142
FROM php:7.3-cli-buster
# Surpresses debconf complaints of trying to install apt packages interactively
# https://github.com/moby/moby/issues/4032#issuecomment-192327844
ARG DEBIAN_FRONTEND=noninteractive
#RUN echo "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list
RUN echo “deb https://packages.sury.org/php/ stretch main”
# Update
RUN apt-get -y update --fix-missing && \
apt-get upgrade -y && \
apt-get --no-install-recommends install -y apt-utils && \
rm -rf /var/lib/apt/lists/*
# Install useful tools and install important libraries
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
apt-get -y install nano wget dialog libsqlite3-dev libsqlite3-0 libssl-dev && \
apt-get -y install default-mysql-client zlib1g-dev libzip-dev libicu-dev && \
apt-get -y install --fix-missing apt-utils build-essential git curl && \
apt-get -y install --fix-missing libcurl4 libcurl4-gnutls-dev zip openssl && \
apt-get -y install --fix-missing git git-core git-ftp && \
apt-get -y install --fix-missing ftp && \
rm -rf /var/lib/apt/lists/* && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install xdebug
RUN pecl install xdebug-2.7.2 && \
docker-php-ext-enable xdebug
# Install redis
RUN pecl install redis-5.0.2 && \
docker-php-ext-enable redis
# Other PHP7 Extensions
RUN docker-php-ext-install pdo_mysql && \
docker-php-ext-install pdo_sqlite && \
docker-php-ext-install mysqli && \
docker-php-ext-install curl && \
docker-php-ext-install tokenizer && \
docker-php-ext-install json && \
docker-php-ext-install zip
# Install Freetype
RUN apt-get -y update && \
apt-get --no-install-recommends install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) gd
# Enable apache modules
### RUN a2enmod rewrite headers ssl deflate filter expires
# Cleanup
### RUN rm -rf /usr/src/*
### COPY /config/conf-available/ssl-params.conf /etc/apache2/conf-available/ssl-params.conf
### RUN a2enconf ssl-params
Content type
Image
Digest
sha256:b65b763da…
Size
236.3 MB
Last updated
about 3 years ago
docker pull fefoweb/php-7-3-0-cli:1.2.0