<gh_stars>0
FROM php:7

RUN apt-get update -y && apt-get install -y openssl zip unzip git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

#RUN docker-php-ext-install pdo mbstring

WORKDIR /app

COPY . /app

RUN composer install

RUN docker-php-ext-install mysqli pdo pdo_mysql

CMD ["php" ,"artisan", "cache:clear"]
CMD ["php" ,"artisan", "config:clear"]
CMD ["php" ,"artisan", "config:cache"]
CMD ["php" ,"artisan", "migrate:fresh", "--seed"]

CMD ["php","artisan","serve","--host=0.0.0.0"]
