Atualizar Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -3,10 +3,14 @@ FROM php:8.2-apache
|
|||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
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-configure gd --with-freetype --with-jpeg; \
|
||||||
docker-php-ext-install \
|
docker-php-ext-install pdo pdo_mysql mbstring zip gd; \
|
||||||
pdo pdo_mysql mbstring zip gd; \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
@@ -15,12 +19,10 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|||||||
|
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN chown -R www-data:www-data /var/www/html && chmod -R 755 /var/www/html
|
||||||
chown -R www-data:www-data /var/www/html; \
|
|
||||||
chmod -R 755 /var/www/html
|
|
||||||
|
|
||||||
WORKDIR /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
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user