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.
This commit is contained in:
Ümit Tunç
2025-01-20 22:16:17 +03:00
parent 5283c8aac9
commit 7d108ca032
+2
View File
@@ -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"]