Skip to content

Instantly share code, notes, and snippets.

@mhemrg
Last active March 24, 2019 10:50
Show Gist options
  • Save mhemrg/46bb35f6a3e5778a08aad895a005c1b0 to your computer and use it in GitHub Desktop.
Save mhemrg/46bb35f6a3e5778a08aad895a005c1b0 to your computer and use it in GitHub Desktop.
Liara | Laravel platform without npm
FROM thecodingmachine/php:7.2-v2-apache-node8
ENV APACHE_DOCUMENT_ROOT=/public \
TEMPLATE_PHP_INI=production \
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 \
--no-scripts
ENV APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data \
COMPOSER_ALLOW_SUPERUSER=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment