build script for dev php containers
This commit is contained in:
27
dockerfiles/tasks/dev-php7.0/Dockerfile-71
Normal file
27
dockerfiles/tasks/dev-php7.0/Dockerfile-71
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
# 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.1 php-cli php-fpm php-curl php-pear php-mcrypt php-zip php-mbstring php-xml \
|
||||
php-pgsql php-redis \
|
||||
\
|
||||
&& apt-cache pkgnames | grep php7.1 \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
||||
COPY ./docker-php-fpm.conf /etc/php/7.1fpm/pool.d/www.conf
|
||||
|
||||
ENTRYPOINT ["/usr/sbin/php-fpm7.1", "-F"]
|
||||
Reference in New Issue
Block a user