Move php-fpm to Docker hub

master
andryyy 2016-12-14 08:51:43 +01:00
parent 5f87e3a231
commit 6104cd11ce
2 changed files with 16 additions and 8 deletions

View File

@ -25,11 +25,4 @@ docker run \
--name ${NAME} \
--network-alias=phpfpm \
-h phpfpm \
php:${PHPVERS}
echo "Installing intl and mysql pdo extension..."
docker exec ${NAME} /bin/bash -c "apt-get update && apt-get install -y zlib1g-dev libicu-dev g++ libidn11-dev"
docker exec ${NAME} docker-php-ext-configure intl pdo pdo_mysql
docker exec ${NAME} docker-php-ext-install intl pdo pdo_mysql
echo "Restarting container..."
docker restart ${NAME}
andryyy/mailcow-dockerized:phpfpm

View File

@ -0,0 +1,15 @@
FROM php:7.1-fpm
MAINTAINER Andre Peters <andre.peters@servercow.de>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y zlib1g-dev libicu-dev g++ libidn11-dev
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl pdo pdo_mysql
WORKDIR /var/www/html
EXPOSE 9000
CMD ["php-fpm"]