Create Dockerfile for Zend Expressive

1

Hello everyone, I'm having a hard time running zend expressive with docker. I have other projects that work perfectly with docker but when I try to develop with zend expressive, I can not, it gives error saying that can not find the file vendor / autoload.php, being the same is there .. I have tried several manners but there is no way, if I enter by MAMP, funcona right, but by docker not. Does anyone know what can it be? Below is the Dockerfile

FROM php:7.0-apache

RUN apt-get update

RUN a2enmod rewrite

RUN docker-php-ext-install pdo pdo_mysql

# install GD
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install gd

# install json
RUN docker-php-ext-install json

Oh, for me to create the php image I'm using "docker build -t project / php7."

If someone can help me, thank you ..

    
asked by anonymous 20.11.2016 / 19:31

1 answer

0

Here is a configuration of PHP and Apache to run the application with Zend Expressive: link

;)

    
26.11.2016 / 19:56