Tweaked docker dev container to work with m1 apple silicon

Tested on m1 macbook, needs testing on amd64
This commit is contained in:
Dan Brown 2022-07-14 01:34:57 +01:00
parent a721405202
commit 7e04f70bf3
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -6,7 +6,7 @@ WORKDIR /app
# Install additional dependacnies and configure apache # Install additional dependacnies and configure apache
RUN apt-get update -y \ RUN apt-get update -y \
&& apt-get install -y git zip unzip libpng-dev libldap2-dev libzip-dev wait-for-it \ && apt-get install -y git zip unzip libpng-dev libldap2-dev libzip-dev wait-for-it \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \ && docker-php-ext-configure ldap --with-libdir="lib/$(gcc -dumpmachine)" \
&& docker-php-ext-install pdo_mysql gd ldap zip \ && docker-php-ext-install pdo_mysql gd ldap zip \
&& pecl install xdebug \ && pecl install xdebug \
&& docker-php-ext-enable xdebug \ && docker-php-ext-enable xdebug \