From 7d108ca0321c19d10c017f77c76db916079f7dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Mon, 20 Jan 2025 22:16:17 +0300 Subject: [PATCH] Add Dockerfile for Laravel application setup - Introduced a new Dockerfile utilizing PHP 8.2 for the Laravel application. - Configured timezone settings and installed necessary dependencies including Git, cURL, and PHP extensions. - Set up cron jobs for Laravel task scheduling and included Composer for dependency management. - Implemented file permission settings to enhance security and functionality across application directories. - Added commands for Laravel application initialization, including migration, key generation, and caching operations. - Included a custom entrypoint script to streamline container startup processes. These changes establish a robust Docker environment for the Laravel application, improving deployment and operational efficiency. --- dockerfile => Dockerfile | 2 ++ 1 file changed, 2 insertions(+) rename dockerfile => Dockerfile (98%) diff --git a/dockerfile b/Dockerfile similarity index 98% rename from dockerfile rename to Dockerfile index 0a53a18..8cdffe5 100644 --- a/dockerfile +++ b/Dockerfile @@ -77,4 +77,6 @@ RUN set -x && \ COPY docker-entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/docker-entrypoint.sh +RUN composer install --no-dev --optimize-autoloader + ENTRYPOINT ["docker-entrypoint.sh"]