Skip to content

Commit

Permalink
fix docker base
Browse files Browse the repository at this point in the history
  • Loading branch information
Xusifob committed Feb 3, 2025
1 parent 7996c59 commit 725daae
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions docker/apache/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ ARG PHP_VERSION=8.3

FROM php:${PHP_VERSION}-apache-bookworm AS rpps-base

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update --fix-missing
RUN apt-get install -y curl nano unzip
RUN apt-get install -y build-essential libssl-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev libzip-dev

RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
libpng-dev \
libjpeg-dev \
&& docker-php-ext-configure gd \
--with-freetype=/usr/include/ \
--with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) \
gd \
&& apt-get purge -y \
libfreetype6-dev \
libpng-dev \
libjpeg-dev
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& apt-get purge -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev

RUN apt-get update \
&& apt-get install -y \
Expand Down

0 comments on commit 725daae

Please sign in to comment.