Files
Symfony_7_Docker/Dockerfile
2024-09-22 21:12:28 +02:00

22 lines
488 B
Docker

# Utiliser PHP 8.2-fpm
FROM php:8.2-fpm
RUN apt-get update && apt-get install -y \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libzip-dev \
unzip \
git \
curl \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd zip
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY . /var/www/html
RUN chown -R www-data:www-data /var/www/html/var
RUN chmod -R 775 /var/www/html/var