File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
4
4
RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
5
5
docker-php-ext-configure gd \
6
6
--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
13
13
14
14
COPY . /var/task
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
4
4
RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
5
5
docker-php-ext-configure gd \
6
6
--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
13
13
14
14
COPY . /var/task
You can’t perform that action at this time.
0 commit comments