From dec4fb0aa5bccb452ad85338cf7c4edc4fb1a119 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 5 Jun 2023 23:02:34 +0100 Subject: [PATCH] build-configs(update) --- Dockerfile | 5 ++++- docker-compose.yaml | 2 +- tools/docker/images/php/root/usr/local/etc/php/php.ini | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tools/docker/images/php/root/usr/local/etc/php/php.ini diff --git a/Dockerfile b/Dockerfile index aa6dadb..5c8d98d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,12 @@ FROM base AS build USER root + RUN apt-get update -yqq \ && apt-get install -yqq --no-install-recommends \ - git libpng-dev libzip-dev mariadb-client unzip + git libjpeg-dev libpng-dev libzip-dev mariadb-client unzip + +RUN docker-php-ext-configure gd --with-jpeg RUN docker-php-ext-install gd pdo_mysql zip diff --git a/docker-compose.yaml b/docker-compose.yaml index ac25ab2..3959a52 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -38,7 +38,7 @@ services: profiles: [web] php: - <<: *default-app + <<: [, *default-app] build: context: . target: build diff --git a/tools/docker/images/php/root/usr/local/etc/php/php.ini b/tools/docker/images/php/root/usr/local/etc/php/php.ini new file mode 100644 index 0000000..1ce5894 --- /dev/null +++ b/tools/docker/images/php/root/usr/local/etc/php/php.ini @@ -0,0 +1,4 @@ +# Do not edit this file. It is automatically generated by https://oliverdavies.dev/build-configs. + +max_vars_input = 1000 +memory_limit = 128M