Commit 179f498
fix(dockerfile): use POSIX-compliant arithmetic for retry backoff
Replace bash-specific exponentiation (5 * 2 ** (ATTEMPT - 1)) with POSIX
sh-compatible case statement for hardcoded backoff values:
- ATTEMPT 1: 5 seconds
- ATTEMPT 2: 10 seconds
- ATTEMPT 3: 20 seconds
This fixes 'arithmetic expression: expecting primary' errors in Alpine
and Debian builds which use /bin/sh instead of bash.
Applies to both:
- Dockerfile.v1: install-php-extensions download and installation
- Dockerfile.v2: s6-overlay download1 parent b6938e4 commit 179f498
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
0 commit comments