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