From 6f2ab3669cc3af48f96ae66b9aba179ac01886a4 Mon Sep 17 00:00:00 2001 From: Sasaya Date: Tue, 24 Oct 2023 13:59:22 +0800 Subject: [PATCH] feat: add swoole 5.1.0 --- apply-template.sh | 2 ++ dockerfiles/5.1.0/php8.1/Dockerfile | 10 ++++++++++ dockerfiles/5.1.0/php8.2/Dockerfile | 10 ++++++++++ 3 files changed, 22 insertions(+) create mode 100644 dockerfiles/5.1.0/php8.1/Dockerfile create mode 100644 dockerfiles/5.1.0/php8.2/Dockerfile diff --git a/apply-template.sh b/apply-template.sh index 577791a..40f218c 100755 --- a/apply-template.sh +++ b/apply-template.sh @@ -5,6 +5,8 @@ dockerfiles_path=dockerfiles versions=" 5.0.3@8.1 5.0.3@8.2 +5.1.0@8.1 +5.1.0@8.2 " for version in ${versions}; do diff --git a/dockerfiles/5.1.0/php8.1/Dockerfile b/dockerfiles/5.1.0/php8.1/Dockerfile new file mode 100644 index 0000000..d43dacc --- /dev/null +++ b/dockerfiles/5.1.0/php8.1/Dockerfile @@ -0,0 +1,10 @@ +FROM phpswoole/swoole:5.1.0-php8.1 + +RUN apt-get update && \ + apt-get install -y ca-certificates curl gnupg && \ + mkdir -p /etc/apt/keyrings && \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get install nodejs -y && \ + rm -rf /var/lib/apt/lists/* diff --git a/dockerfiles/5.1.0/php8.2/Dockerfile b/dockerfiles/5.1.0/php8.2/Dockerfile new file mode 100644 index 0000000..7d7c354 --- /dev/null +++ b/dockerfiles/5.1.0/php8.2/Dockerfile @@ -0,0 +1,10 @@ +FROM phpswoole/swoole:5.1.0-php8.2 + +RUN apt-get update && \ + apt-get install -y ca-certificates curl gnupg && \ + mkdir -p /etc/apt/keyrings && \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get install nodejs -y && \ + rm -rf /var/lib/apt/lists/*