Skip to content

Instantly share code, notes, and snippets.

@mhemrg
Last active February 28, 2019 16:06
Show Gist options
  • Save mhemrg/0988cb0dd725560b8e450859ae4dae1e to your computer and use it in GitHub Desktop.
Save mhemrg/0988cb0dd725560b8e450859ae4dae1e to your computer and use it in GitHub Desktop.
Liara - Laravel platform without asset building
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