Skip to content

Commit 68c0af0

Browse files
committed
Added 8.3
1 parent ff63ada commit 68c0af0

File tree

3 files changed

+119
-2
lines changed

3 files changed

+119
-2
lines changed

8.3-alpine/Dockerfile

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
FROM php:8.3-alpine3.18
2+
LABEL maintainer="Swoole Team <[email protected]>"
3+
4+
RUN apk update
5+
6+
# common tools
7+
RUN apk add --no-cache \
8+
bash \
9+
curl \
10+
wget \
11+
zip \
12+
unzip \
13+
git \
14+
vim \
15+
linux-headers
16+
17+
# dev tools
18+
RUN apk add --no-cache \
19+
autoconf \
20+
automake \
21+
c-ares \
22+
c-ares-dev \
23+
dpkg \
24+
dpkg-dev \
25+
file \
26+
g++ \
27+
gcc \
28+
libgcc \
29+
libstdc++ \
30+
libtool \
31+
make \
32+
openssl \
33+
openssl-dev \
34+
brotli-dev \
35+
pcre-dev \
36+
pkgconf \
37+
re2c \
38+
zlib \
39+
zlib-dev \
40+
libcurl \
41+
libpq \
42+
unixodbc-dev \
43+
curl-dev
44+
45+
# extensions
46+
RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install \
47+
pdo_mysql \
48+
mysqli \
49+
opcache \
50+
sockets \
51+
pcntl && \
52+
echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
53+
pecl install redis && docker-php-ext-enable redis
54+
55+
# install composer
56+
ENV COMPOSER_ALLOW_SUPERUSER 1
57+
RUN curl -sS https://getcomposer.org/installer | php && \
58+
mv composer.phar /usr/local/bin/composer && \
59+
composer self-update --clean-backups
60+
61+
# dev tools
62+
RUN apk add --no-cache \
63+
gdb \
64+
strace \
65+
valgrind

8.3/Dockerfile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
FROM php:8.3-bullseye
2+
LABEL maintainer="Swoole Team <[email protected]>"
3+
4+
RUN apt update -y
5+
6+
RUN apt install -y \
7+
procps \
8+
libfreetype6-dev \
9+
libjpeg62-turbo-dev \
10+
libpng-dev \
11+
openssl \
12+
libssh-dev \
13+
libpcre3 \
14+
libpcre3-dev \
15+
libonig-dev \
16+
libcurl4-openssl-dev \
17+
libc-ares-dev \
18+
libbrotli-dev \
19+
libpq-dev \
20+
unixodbc-dev \
21+
odbc-mariadb \
22+
curl \
23+
wget \
24+
zip \
25+
unzip \
26+
git \
27+
vim
28+
29+
RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install \
30+
gd \
31+
pdo_mysql \
32+
mysqli \
33+
opcache \
34+
sockets \
35+
pcntl && \
36+
echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
37+
pecl install redis && docker-php-ext-enable redis
38+
39+
# install composer
40+
ENV COMPOSER_ALLOW_SUPERUSER 1
41+
RUN curl -sS https://getcomposer.org/installer | php && \
42+
mv composer.phar /usr/local/bin/composer && \
43+
composer self-update --clean-backups
44+
45+
# dev-tools
46+
RUN apt install -y \
47+
gdb \
48+
strace \
49+
valgrind
50+
51+
# clean up
52+
RUN apt autoremove && apt clean

generator

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ function render($version, $type)
4242
file_put_contents($dockerFile, $content);
4343
}
4444

45-
$debian_versions = ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', 'rc', 'latest'];
45+
$debian_versions = ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', 'rc', 'latest'];
4646
foreach ($debian_versions as $v) {
4747
render($v, 'debian');
4848
}
4949

50-
$alpine_versions = ['7.2-alpine', '7.3-alpine', '7.4-alpine', '8.0-alpine', '8.1-alpine', '8.2-alpine', 'rc-alpine', 'alpine'];
50+
$alpine_versions = ['7.2-alpine', '7.3-alpine', '7.4-alpine', '8.0-alpine', '8.1-alpine', '8.2-alpine', '8.3-alpine', 'rc-alpine', 'alpine'];
5151
foreach ($alpine_versions as $v) {
5252
render($v, 'alpine');
5353
}

0 commit comments

Comments
 (0)