diff --git a/Dockerfile b/Dockerfile index 75db44c..c9366cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,20 @@ FROM php:8.3-apache -ENV APACHE_DOCUMENT_ROOT /var/www/html/public RUN apt-get update && apt-get install -y \ libpq-dev \ + libpq5 \ libicu-dev \ + libicu72 \ libpng-dev \ + libpng16-16 \ + libzip-dev \ + libzip4 \ unzip \ git \ - curl + curl \ + zip -RUN docker-php-ext-install pdo_pgsql pgsql intl gd +RUN docker-php-ext-install pdo_pgsql pgsql intl gd zip COPY --from=composer:latest /usr/bin/composer /usr/bin/composer @@ -21,9 +26,6 @@ RUN composer install --no-dev --optimize-autoloader RUN chown -R www-data:www-data storage bootstrap/cache -RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \ - && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf - RUN a2enmod rewrite EXPOSE 80 diff --git a/routes/web.php b/routes/web.php index 86a06c5..1965107 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,4 +4,5 @@ use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); -}); + }); +