Skip to content

Commit 165698d

Browse files
authored
Alpine 3.17 (#1953)
Signed-off-by: J0WI <[email protected]>
1 parent 89a0b89 commit 165698d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:%%PHP_VERSION%%-%%VARIANT%%3.16
1+
FROM php:%%PHP_VERSION%%-%%VARIANT%%%%ALPINE_VERSION%%
22

33
# entrypoint.sh and cron.sh dependencies
44
RUN set -ex; \

update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33

4+
declare -A alpine_version=(
5+
[24]='3.16'
6+
[25]='3.16'
7+
[default]='3.17'
8+
)
9+
410
declare -A php_version=(
511
[24]='8.0'
612
[default]='8.1'
@@ -86,6 +92,7 @@ function version_greater_or_equal() {
8692

8793
function create_variant() {
8894
dir="$1/$variant"
95+
alpineVersion=${alpine_version[$version]-${alpine_version[default]}}
8996
phpVersion=${php_version[$version]-${php_version[default]}}
9097
crontabInt=${crontab_int[$version]-${crontab_int[default]}}
9198

@@ -100,6 +107,7 @@ function create_variant() {
100107

101108
# Replace the variables.
102109
sed -ri -e '
110+
s/%%ALPINE_VERSION%%/'"$alpineVersion"'/g;
103111
s/%%PHP_VERSION%%/'"$phpVersion"'/g;
104112
s/%%VARIANT%%/'"$variant"'/g;
105113
s/%%VERSION%%/'"$fullversion"'/g;

0 commit comments

Comments
 (0)