LotGDocker/lotgd-php/Dockerfile

39 lines
1.3 KiB
Docker
Raw Permalink Normal View History

2020-08-17 19:16:42 -04:00
#This image is simply the template base for the fastcgi image, it doesn't do much on it's own
FROM ubuntu:focal
# Fixes some weird terminal issues such as broken clear / CTRL+L
ENV TERM=linux
# Ensure apt doesn't ask questions when installing stuff
ENV DEBIAN_FRONTEND=noninteractive
# Install Ondrej repos for Ubuntu focal, PHP5.6, composer and selected extensions - better selection than
# the distro's packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends gnupg \
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ondrej-php.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
ca-certificates \
curl \
unzip \
php5.6-cli \
php5.6-curl \
php5.6-mysql \
php5.6-pdo \
php5.6-gd \
php5.6-json \
php5.6-mbstring \
php5.6-opcache \
php5.6-readline \
php5.6-xml \
php5.6-zip \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer global require hirak/prestissimo \
&& composer clear-cache \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
CMD ["php", "-a"]