File tree Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Original file line number Diff line number Diff line change 13
13
14
14
build :
15
15
16
- runs-on : ubuntu-latest
16
+ # runs-on: ubuntu-latest
17
+ runs-on : ubuntu-22.04
17
18
18
19
steps :
19
20
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
# docker-compose build
2
2
FROM php:8.4-fpm-alpine
3
3
4
- ENV PHPREDIS_VERSION 6.1.0
5
4
ENV FEWOHBEE_VERSION latest
6
5
7
- RUN mkdir -p /usr/src/php/ext/redis \
8
- && curl -L https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
9
- && echo 'redis' >> /usr/src/ php-available-exts
10
-
6
+ ARG PHP_EXTS= "redis intl gd opcache pdo_mysql"
7
+
8
+ ADD --chmod=0755 https://github.com/mlocati/docker- php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
9
+
11
10
RUN apk add --update --no-cache \
12
11
git \
13
12
zip \
14
13
unzip \
15
14
tzdata \
16
- freetype \
17
- libjpeg-turbo \
18
- libpng \
19
- libxml2 \
20
15
icu \
21
16
# required for full langugae support: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0#ICU_data_split
22
17
icu-data-full
23
18
24
- RUN apk add --no-cache --virtual .build-deps \
25
- autoconf \
26
- freetype-dev \
27
- libjpeg-turbo-dev \
28
- libpng-dev \
29
- libxml2-dev \
30
- icu-dev \
31
- pcre-dev \
32
- && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
33
- && docker-php-ext-install -j$(nproc) gd \
34
- && docker-php-ext-install intl pdo_mysql xml opcache redis \
35
- && apk del .build-deps
19
+ RUN install-php-extensions ${PHP_EXTS}
36
20
37
21
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
38
22
You can’t perform that action at this time.
0 commit comments