laravel.dockerfile 273 B

1234567891011121314
  1. FROM tfb/php7:latest
  2. ADD ./ /laravel
  3. WORKDIR /laravel
  4. RUN composer.phar install --no-progress
  5. RUN php artisan config:cache
  6. RUN php artisan route:cache
  7. RUN chmod -R 777 /laravel
  8. CMD service php7.2-fpm start && \
  9. nginx -c /laravel/deploy/nginx.conf -g "daemon off;"