Needed to modify default Dockerfile to install laminas MVC skeleton

Hello,

I am trying the installation of the MVC skeleton withc docker, vagrant and with apache. I have started with docker and to succes I had to modify the Dockerfile with the Intl PHP extension and the libicu-dev package.

As I do not select the i18n component the instalation process always installed it and then a PHP error points me to the installation of Intl package and libicu-dev.

Have I done something wrong? I am using a MacOS Catalina with the Catalan language set up.

My actual Dockerfile is:

FROM php:7.3-apache

*RUN apt-get update *

  • && apt-get install -y git zlib1g-dev libzip-dev libicu-dev *
  • && docker-php-ext-install zip *
  • && docker-php-ext-configure intl *
  • && docker-php-ext-install intl *
  • && a2enmod rewrite *
  • && sed -i ā€˜s!/var/www/html!/var/www/public!gā€™ /etc/apache2/sites-available/000-default.conf *
  • && mv /var/www/html /var/www/public *
  • && curl -sS https://getcomposer.org/installer *
  • | php ā€“ --install-dir=/usr/local/bin --filename=composer*

WORKDIR /var/www

Thanks for your help!

Sergi Garcia Besora

There is some docker-php-ext which requires other linux packages. You did well.

Hi Gary,
:+1: :smiley:
Thanks

@Sergi_Garcia_Besora Can you please open an issue against laminas/laminas-mvc-skeleton detailing this, as well as your solution?

Thanks!

@matthew I have written the issue :+1: