diff --git a/CHANGELOG.md b/CHANGELOG.md
index a946996a..292f54f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@ Table of Contents
=================
* [Swoole 5.1](#swoole-51)
+ * [5.1.3](#513)
* [5.1.2](#512)
* [5.1.1](#511)
* [5.1.0](#510)
@@ -71,6 +72,11 @@ Table of Contents
# Swoole 5.1
+## 5.1.3
+
+### Changed
+- Upgrade _Composer_ from 2.6.6 to 2.7.6.
+
## 5.1.2
### Changed
diff --git a/README.md b/README.md
index b585d6b4..d0aa1a28 100644
--- a/README.md
+++ b/README.md
@@ -173,7 +173,7 @@ The `phpswoole/swoole` images come in three flavors, each designed for a specifi
* `phpswoole/swoole:latest`
* `phpswoole/swoole:5.1`
* `phpswoole/swoole:5.1-php8.2`
-* `phpswoole/swoole:5.1.2-php8.2`
+* `phpswoole/swoole:5.1.3-php8.2`
This variant is based on the _php:cli_ images, with a few changes. It uses _Supervisord_ to manage booting processes, and has _Composer_ preinstalled.
@@ -182,7 +182,7 @@ This variant is based on the _php:cli_ images, with a few changes. It uses _Supe
* `phpswoole/swoole:latest-dev`
* `phpswoole/swoole:5.1-dev`
* `phpswoole/swoole:5.1-php8.2-dev`
-* `phpswoole/swoole:5.1.2-php8.2-dev`
+* `phpswoole/swoole:5.1.3-php8.2-dev`
This variant is very similar to the previous one, but it has extra tools added for testing, debugging, and monitoring purpose,
including [gdb](https://www.gnu.org/s/gdb), git, lsof, [strace](https://strace.io), [tcpdump](https://www.tcpdump.org), [Valgrind](http://www.valgrind.org), and vim.
@@ -192,12 +192,12 @@ including [gdb](https://www.gnu.org/s/gdb), git, lsof, [strace](https://strace.i
* `phpswoole/swoole:latest-alpine`
* `phpswoole/swoole:5.1-alpine`
* `phpswoole/swoole:5.1-php8.2-alpine`
-* `phpswoole/swoole:5.1.2-php8.2-alpine`
+* `phpswoole/swoole:5.1.3-php8.2-alpine`
You can use this variant in the same way as using the _php:alpine_ image, except that we changed the default working directory to _/var/www_.
Also, we have _Composer_ preinstalled in the image.
-Note: We don't have development tools built in for Alpine images. There is no Docker images like `phpswoole/swoole:5.1.2-php8.2-alpine-dev`.
+Note: We don't have development tools built in for Alpine images. There is no Docker images like `phpswoole/swoole:5.1.3-php8.2-alpine-dev`.
# Supported Tags and Respective `Dockerfile` Links
@@ -207,10 +207,10 @@ Note: We don't have development tools built in for Alpine images. There is no Do
| PHP Versions | Default Images | Dev Images | Alpine Images |
|-|-|-|-|
-| PHP 8.3 | [5.1.2-php8.3, 5.1-php8.3](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.3/cli/Dockerfile) | [5.1.2-php8.3-dev, 5.1-php8.3-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.3/cli/Dockerfile) | [5.1.2-php8.3-alpine, 5.1-php8.3-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.3/alpine/Dockerfile) |
-| PHP 8.2 | [5.1.2-php8.2, 5.1-php8.2,
5.1, latest](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.2/cli/Dockerfile) | [5.1.2-php8.2-dev, 5.1-php8.2-dev,
5.1-dev, latest-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.2/cli/Dockerfile) | [5.1.2-php8.2-alpine, 5.1-php8.2-alpine,
5.1-alpine, latest-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.2/alpine/Dockerfile) |
-| PHP 8.1 | [5.1.2-php8.1, 5.1-php8.1](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.1/cli/Dockerfile) | [5.1.2-php8.1-dev, 5.1-php8.1-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.1/cli/Dockerfile) | [5.1.2-php8.1-alpine, 5.1-php8.1-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.1/alpine/Dockerfile) |
-| PHP 8.0 | [5.1.2-php8.0, 5.1-php8.0](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.0/cli/Dockerfile) | [5.1.2-php8.0-dev, 5.1-php8.0-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.0/cli/Dockerfile) | [5.1.2-php8.0-alpine, 5.1-php8.0-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.2/php8.0/alpine/Dockerfile) |
+| PHP 8.3 | [5.1.3-php8.3, 5.1-php8.3](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.3/cli/Dockerfile) | [5.1.3-php8.3-dev, 5.1-php8.3-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.3/cli/Dockerfile) | [5.1.3-php8.3-alpine, 5.1-php8.3-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.3/alpine/Dockerfile) |
+| PHP 8.2 | [5.1.3-php8.2, 5.1-php8.2,
5.1, latest](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.2/cli/Dockerfile) | [5.1.3-php8.2-dev, 5.1-php8.2-dev,
5.1-dev, latest-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.2/cli/Dockerfile) | [5.1.3-php8.2-alpine, 5.1-php8.2-alpine,
5.1-alpine, latest-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.2/alpine/Dockerfile) |
+| PHP 8.1 | [5.1.3-php8.1, 5.1-php8.1](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.1/cli/Dockerfile) | [5.1.3-php8.1-dev, 5.1-php8.1-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.1/cli/Dockerfile) | [5.1.3-php8.1-alpine, 5.1-php8.1-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.1/alpine/Dockerfile) |
+| PHP 8.0 | [5.1.3-php8.0, 5.1-php8.0](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.0/cli/Dockerfile) | [5.1.3-php8.0-dev, 5.1-php8.0-dev](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.0/cli/Dockerfile) | [5.1.3-php8.0-alpine, 5.1-php8.0-alpine](https://github.com/swoole/docker-swoole/blob/master/dockerfiles/5.1.3/php8.0/alpine/Dockerfile) |
### Swoole 5.0
@@ -288,22 +288,22 @@ follow these three steps.
```bash
./bin/generate-dockerfiles.php nightly # Generate dockerfiles to build images from the master branch of Swoole.
-./bin/generate-dockerfiles.php 5.1.2 # Generate dockerfiles to build images for Swoole 5.1.2.
+./bin/generate-dockerfiles.php 5.1.3 # Generate dockerfiles to build images for Swoole 5.1.3.
```
**3**. Build Docker images with commands like:
```bash
docker build -t phpswoole/swoole:php8.2 -f dockerfiles/nightly/php8.2/cli/Dockerfile .
-docker build -t phpswoole/swoole:5.1.2-php8.2 -f dockerfiles/5.1.2/php8.2/cli/Dockerfile .
-docker build -t phpswoole/swoole:5.1.2-php8.2-alpine -f dockerfiles/5.1.2/php8.2/alpine/Dockerfile .
+docker build -t phpswoole/swoole:5.1.3-php8.2 -f dockerfiles/5.1.3/php8.2/cli/Dockerfile .
+docker build -t phpswoole/swoole:5.1.3-php8.2-alpine -f dockerfiles/5.1.3/php8.2/alpine/Dockerfile .
```
To build development images (where extra tools are included), add an argument _DEV_MODE_:
```bash
docker build --build-arg DEV_MODE=true -t phpswoole/swoole:php8.2-dev -f dockerfiles/nightly/php8.2/cli/Dockerfile .
-docker build --build-arg DEV_MODE=true -t phpswoole/swoole:5.1.2-php8.2-dev -f dockerfiles/5.1.2/php8.2/cli/Dockerfile .
+docker build --build-arg DEV_MODE=true -t phpswoole/swoole:5.1.3-php8.2-dev -f dockerfiles/5.1.3/php8.2/cli/Dockerfile .
```
# Credits
diff --git a/config/5.1.3.yml b/config/5.1.3.yml
new file mode 100644
index 00000000..5fa6f1c3
--- /dev/null
+++ b/config/5.1.3.yml
@@ -0,0 +1,17 @@
+# The YAML configuration file for generating Dockerfile of image phpswoole/swoole:5.1.3.
+# For technical details of the configuration file, please check comments and sample configurations in file /config.yml.
+#
+status: "under development"
+php:
+ - "8.0.30"
+ - "8.1.29"
+ - "8.2.20"
+ - "8.3.8"
+image:
+ composer:
+ version: "2.7.6"
+ php_extensions:
+ redis:
+ version: "6.0.2"
+ configureoptions: "enable-redis-igbinary=\"no\" enable-redis-lzf=\"no\" enable-redis-zstd=\"no\""
+ enabled: true
diff --git a/dockerfiles/5.1.3/php8.0/alpine/Dockerfile b/dockerfiles/5.1.3/php8.0/alpine/Dockerfile
new file mode 100644
index 00000000..3a22dadd
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.0/alpine/Dockerfile
@@ -0,0 +1,31 @@
+FROM php:8.0.30-cli-alpine3.16
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+
+RUN \
+ set -ex && \
+ apk update && \
+ apk add --no-cache libstdc++ libpq && \
+ apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ docker-php-ext-install sockets && \
+ docker-php-source extract && \
+ mkdir /usr/src/php/ext/swoole && \
+ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.3.tar.gz -o swoole.tar.gz && \
+ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
+ docker-php-ext-configure swoole \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ docker-php-ext-install -j$(nproc) swoole && \
+ rm -f swoole.tar.gz && \
+ docker-php-source delete && \
+ apk del .build-deps
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.0/cli/Dockerfile b/dockerfiles/5.1.3/php8.0/cli/Dockerfile
new file mode 100644
index 00000000..a3a4731c
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.0/cli/Dockerfile
@@ -0,0 +1,40 @@
+FROM php:8.0.30-cli
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV TERM xterm-color
+
+ARG DEV_MODE
+ENV DEV_MODE $DEV_MODE
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+COPY ./rootfilesystem/ /
+
+RUN \
+ set -ex && \
+ apt-get update && \
+ apt-get install -y \
+ libcurl4-openssl-dev \
+ libpq-dev \
+ libssl-dev \
+ supervisor \
+ unzip \
+ zlib1g-dev \
+ --no-install-recommends && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ install-swoole.sh 5.1.3 \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ mkdir -p /var/log/supervisor && \
+ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static
+
+ENTRYPOINT ["/entrypoint.sh"]
+CMD []
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.1/alpine/Dockerfile b/dockerfiles/5.1.3/php8.1/alpine/Dockerfile
new file mode 100644
index 00000000..d69a1f42
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.1/alpine/Dockerfile
@@ -0,0 +1,31 @@
+FROM php:8.1.29-cli-alpine3.18
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+
+RUN \
+ set -ex && \
+ apk update && \
+ apk add --no-cache libstdc++ libpq && \
+ apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ docker-php-ext-install sockets && \
+ docker-php-source extract && \
+ mkdir /usr/src/php/ext/swoole && \
+ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.3.tar.gz -o swoole.tar.gz && \
+ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
+ docker-php-ext-configure swoole \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ docker-php-ext-install -j$(nproc) swoole && \
+ rm -f swoole.tar.gz && \
+ docker-php-source delete && \
+ apk del .build-deps
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.1/cli/Dockerfile b/dockerfiles/5.1.3/php8.1/cli/Dockerfile
new file mode 100644
index 00000000..16ac7e61
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.1/cli/Dockerfile
@@ -0,0 +1,40 @@
+FROM php:8.1.29-cli
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV TERM xterm-color
+
+ARG DEV_MODE
+ENV DEV_MODE $DEV_MODE
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+COPY ./rootfilesystem/ /
+
+RUN \
+ set -ex && \
+ apt-get update && \
+ apt-get install -y \
+ libcurl4-openssl-dev \
+ libpq-dev \
+ libssl-dev \
+ supervisor \
+ unzip \
+ zlib1g-dev \
+ --no-install-recommends && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ install-swoole.sh 5.1.3 \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ mkdir -p /var/log/supervisor && \
+ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static
+
+ENTRYPOINT ["/entrypoint.sh"]
+CMD []
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.2/alpine/Dockerfile b/dockerfiles/5.1.3/php8.2/alpine/Dockerfile
new file mode 100644
index 00000000..c2ecb93c
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.2/alpine/Dockerfile
@@ -0,0 +1,31 @@
+FROM php:8.2.20-cli-alpine3.18
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+
+RUN \
+ set -ex && \
+ apk update && \
+ apk add --no-cache libstdc++ libpq && \
+ apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ docker-php-ext-install sockets && \
+ docker-php-source extract && \
+ mkdir /usr/src/php/ext/swoole && \
+ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.3.tar.gz -o swoole.tar.gz && \
+ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
+ docker-php-ext-configure swoole \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ docker-php-ext-install -j$(nproc) swoole && \
+ rm -f swoole.tar.gz && \
+ docker-php-source delete && \
+ apk del .build-deps
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.2/cli/Dockerfile b/dockerfiles/5.1.3/php8.2/cli/Dockerfile
new file mode 100644
index 00000000..20f397fa
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.2/cli/Dockerfile
@@ -0,0 +1,40 @@
+FROM php:8.2.20-cli
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV TERM xterm-color
+
+ARG DEV_MODE
+ENV DEV_MODE $DEV_MODE
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+COPY ./rootfilesystem/ /
+
+RUN \
+ set -ex && \
+ apt-get update && \
+ apt-get install -y \
+ libcurl4-openssl-dev \
+ libpq-dev \
+ libssl-dev \
+ supervisor \
+ unzip \
+ zlib1g-dev \
+ --no-install-recommends && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ install-swoole.sh 5.1.3 \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ mkdir -p /var/log/supervisor && \
+ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static
+
+ENTRYPOINT ["/entrypoint.sh"]
+CMD []
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.3/alpine/Dockerfile b/dockerfiles/5.1.3/php8.3/alpine/Dockerfile
new file mode 100644
index 00000000..711ab15e
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.3/alpine/Dockerfile
@@ -0,0 +1,31 @@
+FROM php:8.3.8-cli-alpine3.18
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+
+RUN \
+ set -ex && \
+ apk update && \
+ apk add --no-cache libstdc++ libpq && \
+ apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev linux-headers postgresql-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ docker-php-ext-install sockets && \
+ docker-php-source extract && \
+ mkdir /usr/src/php/ext/swoole && \
+ curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.3.tar.gz -o swoole.tar.gz && \
+ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
+ docker-php-ext-configure swoole \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ docker-php-ext-install -j$(nproc) swoole && \
+ rm -f swoole.tar.gz && \
+ docker-php-source delete && \
+ apk del .build-deps
+
+WORKDIR "/var/www/"
diff --git a/dockerfiles/5.1.3/php8.3/cli/Dockerfile b/dockerfiles/5.1.3/php8.3/cli/Dockerfile
new file mode 100644
index 00000000..8caf4626
--- /dev/null
+++ b/dockerfiles/5.1.3/php8.3/cli/Dockerfile
@@ -0,0 +1,40 @@
+FROM php:8.3.8-cli
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV TERM xterm-color
+
+ARG DEV_MODE
+ENV DEV_MODE $DEV_MODE
+
+COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/
+COPY ./rootfilesystem/ /
+
+RUN \
+ set -ex && \
+ apt-get update && \
+ apt-get install -y \
+ libcurl4-openssl-dev \
+ libpq-dev \
+ libssl-dev \
+ supervisor \
+ unzip \
+ zlib1g-dev \
+ --no-install-recommends && \
+# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-install pdo_mysql && \
+ pecl channel-update pecl.php.net && \
+ pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.0.2 && \
+# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
+ docker-php-ext-enable redis && \
+ install-swoole.sh 5.1.3 \
+ --enable-mysqlnd \
+ --enable-swoole-pgsql \
+ --enable-openssl \
+ --enable-sockets --enable-swoole-curl && \
+ mkdir -p /var/log/supervisor && \
+ rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static
+
+ENTRYPOINT ["/entrypoint.sh"]
+CMD []
+
+WORKDIR "/var/www/"