Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Commit 9ec19a9

Browse files
authored
feat: Build image with new PHP 8.1 version (#29)
1 parent 8fb8fb9 commit 9ec19a9

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
Docker Image for PHP API applications.
44

5-
**Alpine** [`3.13`][alpine-3.13] + **nginx** [`1.18`][nginx-1.18] +
6-
**PHP** [`8.0`][php-8.0]
5+
**Alpine** [`3.15`][alpine] + **nginx** [`1.20`][nginx] +
6+
**PHP** [`8.1`][php]
77

88
```dockerfile
99
FROM ghcr.io/shrink/docker-php-api:8
1010
```
1111

12-
* **All** requests are routed to `public/index.php`
13-
* `xml` and `json` responses are gzipped
14-
* nginx runs on port `8080`
15-
* PHP-FPM status is exposed via `/.container/status` and `/.container/ping`
16-
* Available for [PHP 7 ↓](#php-versions)
12+
- **All** requests are routed to `public/index.php`
13+
- `xml` and `json` responses are gzipped
14+
- nginx runs on port `8080`
15+
- PHP-FPM status is exposed via `/.container/status` and `/.container/ping`
16+
- Available for [PHP 7 ↓](#php-versions)
1717

1818
See an example usage in
1919
[Laravel Strict `shrink/laravel-strict`][shrink/laravel-strict].
@@ -31,7 +31,7 @@ Most production use-cases are best served by
3131
digest to guarantee reproducibility, e.g:
3232

3333
```dockerfile
34-
FROM ghcr.io/shrink/docker-php-api@sha256:637a6ff82d27001b8137e807f6da49d2a8c6d1e234e757945454069ebdec0720
34+
FROM ghcr.io/shrink/docker-php-api@sha256:7ea108539c53d2e601b17c23d9f3b0aacd627c3873eb1ef52187dd71a41ba061
3535
```
3636

3737
## PHP Versions
@@ -43,19 +43,21 @@ major and minor version (e.g: `7` and `7.4`).
4343
FROM ghcr.io/shrink/docker-php-api:7
4444
```
4545

46-
A full list of available image versions can be found in
47-
the [GitHub Container Registry][ghcr/shrink/docker-php-api].
46+
[`images.json`][images-manifest] is the manifest describing the images to be
47+
built by the CI. The [GitHub Container Registry][ghcr/shrink/docker-php-api]
48+
contains a full list of all built images with their tags and digests.
4849

4950
## Credits
5051

5152
Optimized PHP-FPM configuration based on
52-
[TrafeX/docker-php-nginx][TrafeX/docker-php-nginx].
53+
[TrafeX/docker-php-nginx][trafex/docker-php-nginx].
5354

54-
[TrafeX/docker-php-nginx]: https://github.com/TrafeX/docker-php-nginx
55-
[alpine-3.13]: https://alpinelinux.org/posts/Alpine-3.13.0-released.html
56-
[nginx-1.18]: http://nginx.org/en/CHANGES-1.18
57-
[php-8.0]: https://www.php.net/ChangeLog-8.php#PHP_8_0
55+
[trafex/docker-php-nginx]: https://github.com/TrafeX/docker-php-nginx
56+
[alpine]: https://alpinelinux.org/posts/Alpine-3.15.0-released.html
57+
[nginx]: http://nginx.org/en/CHANGES-1.20
58+
[php]: https://www.php.net/ChangeLog-8.php#PHP_8_1
5859
[shrink/laravel-strict]: https://github.com/shrink/laravel-strict
5960
[docker-digest-pinning]: https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-by-digest-immutable-identifier
6061
[ghcr/shrink/docker-php-api]: https://github.com/users/shrink/packages/container/package/docker-php-api
6162
[php/supported-versions]: https://www.php.net/supported-versions.php
63+
[images-manifest]: /images.json

images.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[
2+
{
3+
"tag": "8.1",
4+
"php": "8.1",
5+
"alpine": "3.15",
6+
"nginx": "~1.20"
7+
},
28
{
39
"tag": "8.0",
410
"php": "8.0",

0 commit comments

Comments
 (0)