feat: Initialize Symfony application structure with essential files
- Added index.php for application entry point. - Created app.css for global styles. - Introduced HomeController for handling the home route. - Implemented Kernel class for application kernel. - Added base.html.twig as the main template. - Created index.html.twig for the home page layout. - Set up Docker configurations for development and production environments. - Included opcache configuration for development.
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
FROM dunglas/frankenphp:php8.4
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends git unzip && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN install-php-extensions intl pdo_sqlite zip
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dep manifests first — only reinstalls when these change
|
||||
COPY app/composer.json app/composer.lock ./
|
||||
RUN composer install --no-interaction --prefer-dist --no-dev --no-scripts
|
||||
|
||||
# Copy source and refresh autoloader with actual class paths
|
||||
COPY app/ ./
|
||||
RUN composer dump-autoload --optimize --no-dev
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user