Created
October 31, 2018 04:04
-
-
Save tranphuoctien/de051bb2b2fc68043882d24a171882c6 to your computer and use it in GitHub Desktop.
Restaff build app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.2-fpm | |
| LABEL maintainer="[email protected]" | |
| COPY ./brazn-php /var/www | |
| WORKDIR /var/www | |
| # Installing dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| mysql-client \ | |
| libpng-dev \ | |
| libjpeg62-turbo-dev \ | |
| libfreetype6-dev \ | |
| locales \ | |
| zip \ | |
| jpegoptim optipng pngquant gifsicle | |
| RUN apt-get install -y libcurl4-openssl-dev pkg-config libssl-dev | |
| # Clear cache | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Installing extensions | |
| RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl | |
| RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ | |
| RUN docker-php-ext-install gd | |
| RUN pecl install mongodb | |
| RUN echo "extension=mongodb.so" >> /usr/local/etc/php/conf.d/mongodb.ini | |
| RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
| && php composer-setup.php \ | |
| && php -r "unlink('composer-setup.php');" \ | |
| && php composer.phar install --no-scripts \ | |
| && rm composer.phar | |
| RUN chmod -R 777 /var/www/storage \ | |
| /var/www/bootstrap/cache | |
| COPY ./conf/.env /var/www/.env | |
| RUN php artisan key:generate | |
| RUN php artisan config:clear | |
| RUN php artisan config:cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment