# Use Microsoft's PHP 8.0 image as a foundation
FROM mcr.microsoft.com/appsvc/php:8.0-apache-xdebug_20220510.1
# ACCEPT_EULA is required to silently install some packages
ENV ACCEPT_EULA=Y
# Update the Ubuntu operating system and all it's installed packages
RUN apt-get update && apt-get upgrade -y
# Install mount utility (for Azure File Share)
RUN apt-get install -y cifs-utils
# Update PHP config
ADD php.ini /usr/local/etc/php/conf.d/php.ini
ADD xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# Install Composer 2 to compile backend
RUN apt-get install -y wget unzip \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& unlink composer-setup.php
# Install Node 16
RUN curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh \
&& bash nodesource_setup.sh \
&& apt install nodejs \
&& unlink nodesource_setup.sh
# Install Yarn to compile frontend
RUN npm config set strict-ssl false \
&& npm i -g yarn
# Install Docker
RUN apt install -y docker.io && service docker start
# Install Azure CLI
RUN apt install curl jq -y && curl -sL https://aka.ms/InstallAzureCLIDeb | bash
php.ini
date.timezone=Europe/Prague
error_log=/dev/stderr
display_errors=On
log_errors=On
display_startup_errors=On
realpath_cache_size=4096K
realpath_cache_ttl=600
memory_limit=1G
max_execution_time=18000
xdebug.ini
xdebug.remote_autostart=off
xdebug.mode=develop,debug
xdebug.log_level=0
Content type
Image
Digest
Size
817.8 MB
Last updated
over 4 years ago
docker pull wunderman/azure_cli_php8_node16_docker