-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
206 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# The YAML configuration file for generating Dockerfile of image openswoole/swoole:4.8.1. | ||
# For technical details of the configuration file, please check comments and sample configurations in file /config.yml. | ||
# | ||
status: "under development" | ||
php: | ||
- "8.1.11" | ||
- "8.2.0" | ||
- "8.3.0" | ||
image: | ||
composer: | ||
version: "2.6.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM php:8.1.11-cli-alpine3.16 | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update --clean-backups 2.6.6 && \ | ||
apk update && \ | ||
apk add --no-cache linux-headers && \ | ||
apk add --no-cache libstdc++ postgresql-dev libpq && \ | ||
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ | ||
docker-php-ext-install sockets && \ | ||
docker-php-source extract && \ | ||
mkdir /usr/src/php/ext/openswoole && \ | ||
curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ | ||
tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ | ||
docker-php-ext-configure openswoole \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ | ||
rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ | ||
docker-php-source delete && \ | ||
apk del .build-deps | ||
|
||
WORKDIR "/var/www/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM php:8.1.11-cli | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE $DEV_MODE | ||
|
||
ENV TINI_VERSION v0.19.0 | ||
RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} | ||
RUN chmod +x /tini | ||
|
||
COPY ./rootfilesystem/ / | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update 2.6.6 && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
libcurl4-openssl-dev \ | ||
libpq-dev \ | ||
libssl-dev \ | ||
supervisor \ | ||
unzip \ | ||
zlib1g-dev \ | ||
--no-install-recommends && \ | ||
install-swoole.sh 22.1.2 \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
mkdir -p /var/log/supervisor && \ | ||
rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static | ||
|
||
ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] | ||
CMD [] | ||
|
||
WORKDIR "/var/www/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM php:8.2.0-cli-alpine3.16 | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update --clean-backups 2.6.6 && \ | ||
apk update && \ | ||
apk add --no-cache linux-headers && \ | ||
apk add --no-cache libstdc++ postgresql-dev libpq && \ | ||
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ | ||
docker-php-ext-install sockets && \ | ||
docker-php-source extract && \ | ||
mkdir /usr/src/php/ext/openswoole && \ | ||
curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ | ||
tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ | ||
docker-php-ext-configure openswoole \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ | ||
rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ | ||
docker-php-source delete && \ | ||
apk del .build-deps | ||
|
||
WORKDIR "/var/www/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM php:8.2.0-cli | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE $DEV_MODE | ||
|
||
ENV TINI_VERSION v0.19.0 | ||
RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} | ||
RUN chmod +x /tini | ||
|
||
COPY ./rootfilesystem/ / | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update 2.6.6 && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
libcurl4-openssl-dev \ | ||
libpq-dev \ | ||
libssl-dev \ | ||
supervisor \ | ||
unzip \ | ||
zlib1g-dev \ | ||
--no-install-recommends && \ | ||
install-swoole.sh 22.1.2 \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
mkdir -p /var/log/supervisor && \ | ||
rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static | ||
|
||
ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] | ||
CMD [] | ||
|
||
WORKDIR "/var/www/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM php:8.3.0-cli-alpine3.18 | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update --clean-backups 2.6.6 && \ | ||
apk update && \ | ||
apk add --no-cache linux-headers && \ | ||
apk add --no-cache libstdc++ postgresql-dev libpq && \ | ||
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \ | ||
docker-php-ext-install sockets && \ | ||
docker-php-source extract && \ | ||
mkdir /usr/src/php/ext/openswoole && \ | ||
curl -sfL https://github.com/openswoole/ext-openswoole/archive/v22.1.2.tar.gz -o openswoole.tar.gz && \ | ||
tar xfz openswoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \ | ||
docker-php-ext-configure openswoole \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \ | ||
rm -f openswoole.tar.gz $HOME/.composer/*-old.phar && \ | ||
docker-php-source delete && \ | ||
apk del .build-deps | ||
|
||
WORKDIR "/var/www/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM php:8.3.0-cli | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM xterm-color | ||
|
||
ARG DEV_MODE | ||
ENV DEV_MODE $DEV_MODE | ||
|
||
ENV TINI_VERSION v0.19.0 | ||
RUN dpkgArch="$(dpkg --print-architecture)" && curl -s -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${dpkgArch} | ||
RUN chmod +x /tini | ||
|
||
COPY ./rootfilesystem/ / | ||
|
||
RUN \ | ||
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \ | ||
chmod +x /usr/bin/composer && \ | ||
composer self-update 2.6.6 && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
libcurl4-openssl-dev \ | ||
libpq-dev \ | ||
libssl-dev \ | ||
supervisor \ | ||
unzip \ | ||
zlib1g-dev \ | ||
--no-install-recommends && \ | ||
install-swoole.sh 22.1.2 \ | ||
--enable-http2 \ | ||
--enable-mysqlnd \ | ||
--enable-openssl \ | ||
--enable-sockets --enable-hook-curl --with-postgres && \ | ||
mkdir -p /var/log/supervisor && \ | ||
rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static | ||
|
||
ENTRYPOINT ["/tini", "-g", "--", "/entrypoint.sh"] | ||
CMD [] | ||
|
||
WORKDIR "/var/www/" |