Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions 5.6-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
FROM mcr.microsoft.com/oryx/php:5.6-20190730.1
FROM mcr.microsoft.com/oryx/php:5.6-20191018.1
LABEL maintainer="Azure App Services Container Images <appsvc-images@microsoft.com>"

ENV PHP_VERSION 5.6

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
curl \
net-tools \
dnsutils \
tcpdump \
iproute2

COPY init_container.sh /bin/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

RUN if [[ "$PHP_VERSION" == "5.6" || "$PHP_VERSION" == "7.0" ]] ; then \
apt-get install -y libmcrypt-dev \
&& docker-php-ext-install mcrypt; \
fi

RUN chmod 755 /bin/init_container.sh \
&& mkdir -p /home/LogFiles/ \
&& echo "root:Docker!" | chpasswd \
&& echo "cd /home/site/wwwroot" >> /etc/bash.bashrc \
&& echo "cd /home" >> /root/.bashrc \
&& ln -s /home/site/wwwroot /var/www/html \
&& mkdir -p /opt/startup

Expand Down Expand Up @@ -37,9 +50,12 @@ RUN sed -i 's!User ${APACHE_RUN_GROUP}!Group www-data!g' /etc/apache2/apache2.co
RUN { \
echo 'DocumentRoot /home/site/wwwroot'; \
echo 'DirectoryIndex default.htm default.html index.htm index.html index.php hostingstart.html'; \
echo 'ServerName localhost'; \
echo 'CustomLog /dev/stderr combined'; \
echo '<FilesMatch "\.(?i:ph([[p]?[0-9]*|tm[l]?))$">'; \
echo ' SetHandler application/x-httpd-php'; \
echo '</FilesMatch>'; \
} >> /etc/apache2/apache2.conf

RUN rm -f /usr/local/etc/php/conf.d/php.ini \
&& { \
echo 'error_log=/dev/stderr'; \
Expand All @@ -51,6 +67,7 @@ RUN rm -f /usr/local/etc/php/conf.d/php.ini \
} > /usr/local/etc/php/conf.d/php.ini

RUN rm -f /etc/apache2/conf-enabled/other-vhosts-access-log.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf

WORKDIR /home/site/wwwroot

Expand Down
23 changes: 20 additions & 3 deletions 7.0-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
FROM mcr.microsoft.com/oryx/php:7.0-20190730.1
FROM mcr.microsoft.com/oryx/php:7.0-20191018.1
LABEL maintainer="Azure App Services Container Images <appsvc-images@microsoft.com>"

ENV PHP_VERSION 7.0

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
curl \
net-tools \
dnsutils \
tcpdump \
iproute2

COPY init_container.sh /bin/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

RUN if [[ "$PHP_VERSION" == "5.6" || "$PHP_VERSION" == "7.0" ]] ; then \
apt-get install -y libmcrypt-dev \
&& docker-php-ext-install mcrypt; \
fi

RUN chmod 755 /bin/init_container.sh \
&& mkdir -p /home/LogFiles/ \
&& echo "root:Docker!" | chpasswd \
&& echo "cd /home/site/wwwroot" >> /etc/bash.bashrc \
&& echo "cd /home" >> /root/.bashrc \
&& ln -s /home/site/wwwroot /var/www/html \
&& mkdir -p /opt/startup

Expand Down Expand Up @@ -37,9 +50,12 @@ RUN sed -i 's!User ${APACHE_RUN_GROUP}!Group www-data!g' /etc/apache2/apache2.co
RUN { \
echo 'DocumentRoot /home/site/wwwroot'; \
echo 'DirectoryIndex default.htm default.html index.htm index.html index.php hostingstart.html'; \
echo 'ServerName localhost'; \
echo 'CustomLog /dev/stderr combined'; \
echo '<FilesMatch "\.(?i:ph([[p]?[0-9]*|tm[l]?))$">'; \
echo ' SetHandler application/x-httpd-php'; \
echo '</FilesMatch>'; \
} >> /etc/apache2/apache2.conf

RUN rm -f /usr/local/etc/php/conf.d/php.ini \
&& { \
echo 'error_log=/dev/stderr'; \
Expand All @@ -51,6 +67,7 @@ RUN rm -f /usr/local/etc/php/conf.d/php.ini \
} > /usr/local/etc/php/conf.d/php.ini

RUN rm -f /etc/apache2/conf-enabled/other-vhosts-access-log.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf

WORKDIR /home/site/wwwroot

Expand Down
23 changes: 20 additions & 3 deletions 7.2-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
FROM mcr.microsoft.com/oryx/php:7.2-20190730.1
FROM mcr.microsoft.com/oryx/php:7.2-20191018.1
LABEL maintainer="Azure App Services Container Images <appsvc-images@microsoft.com>"

ENV PHP_VERSION 7.2

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
curl \
net-tools \
dnsutils \
tcpdump \
iproute2

COPY init_container.sh /bin/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

RUN if [[ "$PHP_VERSION" == "5.6" || "$PHP_VERSION" == "7.0" ]] ; then \
apt-get install -y libmcrypt-dev \
&& docker-php-ext-install mcrypt; \
fi

RUN chmod 755 /bin/init_container.sh \
&& mkdir -p /home/LogFiles/ \
&& echo "root:Docker!" | chpasswd \
&& echo "cd /home/site/wwwroot" >> /etc/bash.bashrc \
&& echo "cd /home" >> /root/.bashrc \
&& ln -s /home/site/wwwroot /var/www/html \
&& mkdir -p /opt/startup

Expand Down Expand Up @@ -37,9 +50,12 @@ RUN sed -i 's!User ${APACHE_RUN_GROUP}!Group www-data!g' /etc/apache2/apache2.co
RUN { \
echo 'DocumentRoot /home/site/wwwroot'; \
echo 'DirectoryIndex default.htm default.html index.htm index.html index.php hostingstart.html'; \
echo 'ServerName localhost'; \
echo 'CustomLog /dev/stderr combined'; \
echo '<FilesMatch "\.(?i:ph([[p]?[0-9]*|tm[l]?))$">'; \
echo ' SetHandler application/x-httpd-php'; \
echo '</FilesMatch>'; \
} >> /etc/apache2/apache2.conf

RUN rm -f /usr/local/etc/php/conf.d/php.ini \
&& { \
echo 'error_log=/dev/stderr'; \
Expand All @@ -51,6 +67,7 @@ RUN rm -f /usr/local/etc/php/conf.d/php.ini \
} > /usr/local/etc/php/conf.d/php.ini

RUN rm -f /etc/apache2/conf-enabled/other-vhosts-access-log.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf

WORKDIR /home/site/wwwroot

Expand Down
23 changes: 20 additions & 3 deletions 7.3-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
FROM mcr.microsoft.com/oryx/php:7.3-20190730.1
FROM mcr.microsoft.com/oryx/php:7.3-20191018.1
LABEL maintainer="Azure App Services Container Images <appsvc-images@microsoft.com>"

ENV PHP_VERSION 7.3

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
curl \
net-tools \
dnsutils \
tcpdump \
iproute2

COPY init_container.sh /bin/
COPY hostingstart.html /home/site/wwwroot/hostingstart.html

RUN if [[ "$PHP_VERSION" == "5.6" || "$PHP_VERSION" == "7.0" ]] ; then \
apt-get install -y libmcrypt-dev \
&& docker-php-ext-install mcrypt; \
fi

RUN chmod 755 /bin/init_container.sh \
&& mkdir -p /home/LogFiles/ \
&& echo "root:Docker!" | chpasswd \
&& echo "cd /home/site/wwwroot" >> /etc/bash.bashrc \
&& echo "cd /home" >> /root/.bashrc \
&& ln -s /home/site/wwwroot /var/www/html \
&& mkdir -p /opt/startup

Expand Down Expand Up @@ -37,9 +50,12 @@ RUN sed -i 's!User ${APACHE_RUN_GROUP}!Group www-data!g' /etc/apache2/apache2.co
RUN { \
echo 'DocumentRoot /home/site/wwwroot'; \
echo 'DirectoryIndex default.htm default.html index.htm index.html index.php hostingstart.html'; \
echo 'ServerName localhost'; \
echo 'CustomLog /dev/stderr combined'; \
echo '<FilesMatch "\.(?i:ph([[p]?[0-9]*|tm[l]?))$">'; \
echo ' SetHandler application/x-httpd-php'; \
echo '</FilesMatch>'; \
} >> /etc/apache2/apache2.conf

RUN rm -f /usr/local/etc/php/conf.d/php.ini \
&& { \
echo 'error_log=/dev/stderr'; \
Expand All @@ -51,6 +67,7 @@ RUN rm -f /usr/local/etc/php/conf.d/php.ini \
} > /usr/local/etc/php/conf.d/php.ini

RUN rm -f /etc/apache2/conf-enabled/other-vhosts-access-log.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf

WORKDIR /home/site/wwwroot

Expand Down