docker php5

FROM ubuntu
RUN rm -f /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get full-upgrade -y
RUN apt-get update -y
RUN apt-get install -y iproute2
RUN apt-get install -y php5.6
RUN apt-get install -y php-redis php-amqp php-pdo php-mysql php-mbstring php-xml php-curl php-gd
RUN apt-get install -y apache2
RUN apt-get install -y libapache2-mod-php
RUN a2enmod rewrite
RUN a2enmod proxy
RUN a2enmod proxy_http
CMD apachectl -D FOREGROUND
EXPOSE 80

 

posted on 2019-07-31 14:07  阳光土豆  阅读(139)  评论(0)    收藏  举报

导航