File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
44RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
55 docker-php-ext-configure gd \
66 --enable-gd \
7- --with-freetype-dir=/usr/include/ \
8- --with-png-dir=/usr/include/ \
9- --with-jpeg-dir=/usr/include/ && \
10- NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
11- docker-php-ext-install -j${NPROC} gd && \
12- apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
7+ --with-freetype \
8+ --with-jpeg && \
9+ docker-php-ext-install gd
10+
11+ # cleanup
12+ RUN apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
1313
1414COPY . /var/task
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
44RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
55 docker-php-ext-configure gd \
66 --enable-gd \
7- --with-freetype-dir=/usr/include/ \
8- --with-png-dir=/usr/include/ \
9- --with-jpeg-dir=/usr/include/ && \
10- NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
11- docker-php-ext-install -j${NPROC} gd && \
12- apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
7+ --with-freetype \
8+ --with-jpeg && \
9+ docker-php-ext-install gd
10+
11+ # cleanup
12+ RUN apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
1313
1414COPY . /var/task
You can’t perform that action at this time.
0 commit comments