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:
@@ -77,4 +77,6 @@ RUN set -x && \
|
|||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
|
RUN composer install --no-dev --optimize-autoloader
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user