Skip to content

Commit 74bec2d

Browse files
committed
fix(docker): changed switches for docker-php-ext-configure gd
1 parent 74c943b commit 74bec2d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

production.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
44
RUN 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

1414
COPY . /var/task

staging.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ FROM laravelphp/vapor:php81
44
RUN 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

1414
COPY . /var/task

0 commit comments

Comments
 (0)