From 9edb49f0a8e2f5ed7c5c7c860698ea6d7e81075d Mon Sep 17 00:00:00 2001 From: Zarif WSL-Ubuntu Date: Sun, 17 Jul 2022 16:43:21 +0200 Subject: [PATCH] update dockerfile --- php/Dockerfile | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/php/Dockerfile b/php/Dockerfile index fc51a20..eaf1ec8 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -1,21 +1,42 @@ FROM php:8.0-apache -RUN apt update && apt install -y \ - g++ \ +RUN apt-get update \ + && apt-get -y upgrade --no-install-recommends \ + && apt-get install -y \ + build-essential \ + imagemagick \ + libfreetype6-dev \ libicu-dev \ + libjpeg62-turbo-dev \ + libjpeg-dev \ + libmcrypt-dev \ + libonig-dev \ + libpng-dev \ libpq-dev \ + libssl-dev \ + libxml2-dev \ + libxrender1 \ libzip-dev \ + locales \ + openssl \ + unzip \ zip \ zlib1g-dev \ - nano \ - mariadb-client + --no-install-recommends \ + && apt-get clean && rm -rf /var/lib/apt/lists/* -RUN docker-php-ext-install \ +RUN docker-php-ext-configure gd \ + --with-freetype \ + --with-jpeg \ + && docker-php-ext-install -j$(nproc) \ + gd \ + bcmath \ intl \ - opcache \ + mbstring \ + pcntl \ pdo \ pdo_mysql \ - pgsql + zip WORKDIR /var/www/laravel_docker