Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fixes

Andras Bacsaid641975040d1
diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile
index 2cfd2aa8f1..0590bcda53 100644
--- a/docker/production/Dockerfile
+++ b/docker/production/Dockerfile
@@ -96,8 +96,7 @@ RUN mkdir -p /usr/local/bin && \
chmod +x /usr/local/bin/cloudflared
# Configure PHP
-RUN echo 'upload_max_filesize=256M' > /usr/local/etc/php/conf.d/upload-limits.ini && \
- echo 'post_max_size=256M' >> /usr/local/etc/php/conf.d/upload-limits.ini
+COPY docker/production/etc/php/conf.d/zzz-custom-php.ini /usr/local/etc/php/conf.d/zzz-custom-php.ini
ENV PHP_OPCACHE_ENABLE=1
# Copy application files from previous stages
@@ -115,8 +114,11 @@ COPY --chown=www-data:www-data public ./public
COPY --chown=www-data:www-data routes ./routes
COPY --chown=www-data:www-data storage ./storage
COPY --chown=www-data:www-data templates ./templates
+COPY --chown=www-data:www-data resources/views ./resources/views
COPY --chown=www-data:www-data artisan artisan
+RUN composer dump-autoload
+
# Configure Nginx and S6 overlay
COPY docker/production/etc/nginx/conf.d/custom.conf /etc/nginx/conf.d/custom.conf
COPY docker/production/etc/nginx/site-opts.d/http.conf /etc/nginx/site-opts.d/http.conf
diff --git a/docker/production/etc/php/conf.d/zzz-custom-php.ini b/docker/production/etc/php/conf.d/zzz-custom-php.ini
new file mode 100644
index 0000000000..1e3ea566c2
--- /dev/null
+++ b/docker/production/etc/php/conf.d/zzz-custom-php.ini
@@ -0,0 +1,9 @@
+error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
+error_log = /var/www/html/storage/logs/php-error.log
+log_errors = On
+log_errors_max_len = 8192
+ignore_repeated_errors = On
+ignore_repeated_source = On
+
+upload_max_filesize = 256M
+post_max_size = 256M