From b1884dadc03ed33e76afe38fbf237752245fa97f Mon Sep 17 00:00:00 2001 From: wander Date: Thu, 12 Jun 2025 12:16:58 +0000 Subject: [PATCH] Atualizar Dockerfile --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e5bd67..2e70551 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,14 @@ FROM php:8.2-apache RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ - libzip-dev unzip libpng-dev libjpeg-dev libfreetype6-dev; \ + libzip-dev \ + unzip \ + libpng-dev \ + libjpeg-dev \ + libfreetype6-dev \ + libonig-dev; \ docker-php-ext-configure gd --with-freetype --with-jpeg; \ - docker-php-ext-install \ - pdo pdo_mysql mbstring zip gd; \ + docker-php-ext-install pdo pdo_mysql mbstring zip gd; \ rm -rf /var/lib/apt/lists/* RUN a2enmod rewrite @@ -15,12 +19,10 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer COPY . /var/www/html -RUN set -eux; \ - chown -R www-data:www-data /var/www/html; \ - chmod -R 755 /var/www/html +RUN chown -R www-data:www-data /var/www/html && chmod -R 755 /var/www/html WORKDIR /var/www/html -RUN set -eux; composer install --no-interaction --prefer-dist --optimize-autoloader +RUN composer install --no-interaction --prefer-dist --optimize-autoloader EXPOSE 80