Move php-fpm to Docker hub
parent
5f87e3a231
commit
6104cd11ce
|
@ -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
|
||||
|
|
|
@ -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