Git init & first Dockerfile for apache-php
This commit is contained in:
commit
8b3d7bcae9
|
@ -0,0 +1,22 @@
|
||||||
|
# Official Debian image
|
||||||
|
FROM debian:stretch
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
apache2 \
|
||||||
|
libapache2-mod-php7.0 \
|
||||||
|
php7.0 \
|
||||||
|
php7.0-cli \
|
||||||
|
php7.0-curl \
|
||||||
|
php7.0-imagick \
|
||||||
|
php7.0-mcrypt \
|
||||||
|
php7.0-mysql \
|
||||||
|
php7.0-mbstring \
|
||||||
|
php7.0-xml \
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN a2enmod rewrite remoteip headers
|
||||||
|
RUN echo "export APACHE_ARGUMENTS='-DFOREGROUND'" >>/etc/apache2/envvars
|
||||||
|
|
||||||
|
CMD ["apache2ctl", "-k", "start"]
|
Loading…
Reference in New Issue