Move php-fpm to Docker hub
parent
5f87e3a231
commit
6104cd11ce
|
@ -25,11 +25,4 @@ docker run \
|
||||||
--name ${NAME} \
|
--name ${NAME} \
|
||||||
--network-alias=phpfpm \
|
--network-alias=phpfpm \
|
||||||
-h phpfpm \
|
-h phpfpm \
|
||||||
php:${PHPVERS}
|
andryyy/mailcow-dockerized:phpfpm
|
||||||
|
|
||||||
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}
|
|
||||||
|
|
|
@ -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"]
|
Loading…
Reference in New Issue