Last active
February 28, 2019 16:06
-
-
Save mhemrg/0988cb0dd725560b8e450859ae4dae1e to your computer and use it in GitHub Desktop.
Liara - Laravel platform without asset building
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 thecodingmachine/php:7.2-v2-apache-node8 | |
ENV APACHE_DOCUMENT_ROOT=/public \ | |
TEMPLATE_PHP_INI=production \ | |
LOG_CHANNEL=errorlog \ | |
PHP_EXTENSIONS="amqp bcmath calendar exif gd gettext \ | |
gmp gnupg igbinary imagick imap intl ldap mcrypt memcached \ | |
mongodb pcntl pdo_dblib pdo_pgsql pgsql sockets yaml" | |
USER root | |
RUN composer global require hirak/prestissimo && \ | |
composer global require bamarni/symfony-console-autocomplete && \ | |
rm -rf $HOME\.composer | |
COPY . /var/www/html | |
RUN mkdir -p bootstrap/cache \ | |
&& sudo chgrp -R www-data storage bootstrap/cache \ | |
&& sudo chmod -R ug+rwx storage bootstrap/cache \ | |
&& composer install \ | |
--no-dev \ | |
--no-interaction \ | |
--prefer-dist \ | |
--optimize-autoloader \ | |
--ansi | |
ENV APACHE_RUN_USER=www-data \ | |
APACHE_RUN_GROUP=www-data \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment