php7.3 builds
This commit is contained in:
@@ -1,18 +1,31 @@
|
||||
FROM php:7.3-fpm
|
||||
# Create a base Ubuntu image to build upon
|
||||
# docker build --rm -f Dockerfile-71 -t composer:7.1 .
|
||||
FROM ubuntu:16.04
|
||||
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
|
||||
|
||||
WORKDIR /opt/project
|
||||
|
||||
#CMD ["/usr/sbin/php-fpm7.3", "-F"]
|
||||
EXPOSE 9000
|
||||
|
||||
COPY ./docker-php-fpm.conf /etc/php/7.3fpm/pool.d/www.conf
|
||||
# set terminal variable so that tools such as nano and htop work
|
||||
# this is not needed in prod containers, but is useful for devs
|
||||
ENV TERM=xterm
|
||||
|
||||
RUN apt-get update && apt-get install -y software-properties-common python-software-properties \
|
||||
&& LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php \
|
||||
&& apt-get update && apt-get install -y \
|
||||
curl nano sed libwww-perl htop ca-certificates \
|
||||
php7.3 php7.3-cli php7.3-fpm php7.3-curl php-pear php7.3-zip php7.3-mbstring php7.3-xml \
|
||||
php7.3-mysql php7.3-pgsql php7.3-redis \
|
||||
php-mcrypt \
|
||||
\
|
||||
&& apt-cache pkgnames | grep php7.3 \
|
||||
&& rm /usr/bin/php && ln -s /usr/bin/php7.3 /usr/bin/php \
|
||||
&& ln -s /usr/sbin/php-fpm7.3 /usr/sbin/php-fpm \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN pecl install redis-5.1.1 \
|
||||
&& pecl install memcached-3.1.5 \
|
||||
&& pecl install apcu-5.1.18 \
|
||||
&& docker-php-ext-enable redis memcached apcu
|
||||
COPY ./docker-php-fpm.conf /etc/php/7.3/fpm/pool.d/www.conf
|
||||
|
||||
RUN docker-php-ext-install mysql pgsql cli curl mcrypt zip mbstring xml
|
||||
CMD ["/usr/sbin/php-fpm7.3", "-F"]
|
||||
|
||||
RUN docker-php-ext-enable mysql pgsql cli curl mcrypt zip mbstring xml
|
||||
#php7.3-mcrypt
|
||||
|
||||
Reference in New Issue
Block a user