2
2
3
3
Docker Image for PHP API applications.
4
4
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 ]
7
7
8
8
``` dockerfile
9
9
FROM ghcr.io/shrink/docker-php-api:8
10
10
```
11
11
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 &darr ; ] ( #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 &darr ; ] ( #php-versions )
17
17
18
18
See an example usage in
19
19
[ Laravel Strict ` shrink/laravel-strict ` ] [ shrink/laravel-strict ] .
@@ -31,7 +31,7 @@ Most production use-cases are best served by
31
31
digest to guarantee reproducibility, e.g:
32
32
33
33
``` dockerfile
34
- FROM ghcr.io/shrink/docker-php-api@sha256:637a6ff82d27001b8137e807f6da49d2a8c6d1e234e757945454069ebdec0720
34
+ FROM ghcr.io/shrink/docker-php-api@sha256:7ea108539c53d2e601b17c23d9f3b0aacd627c3873eb1ef52187dd71a41ba061
35
35
```
36
36
37
37
## PHP Versions
@@ -43,19 +43,21 @@ major and minor version (e.g: `7` and `7.4`).
43
43
FROM ghcr.io/shrink/docker-php-api:7
44
44
```
45
45
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.
48
49
49
50
## Credits
50
51
51
52
Optimized PHP-FPM configuration based on
52
- [ TrafeX/docker-php-nginx] [ TrafeX /docker-php-nginx] .
53
+ [ TrafeX/docker-php-nginx] [ trafex /docker-php-nginx] .
53
54
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
58
59
[ shrink/laravel-strict ] : https://github.com/shrink/laravel-strict
59
60
[ docker-digest-pinning ] : https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-by-digest-immutable-identifier
60
61
[ ghcr/shrink/docker-php-api ] : https://github.com/users/shrink/packages/container/package/docker-php-api
61
62
[ php/supported-versions ] : https://www.php.net/supported-versions.php
63
+ [ images-manifest ] : /images.json
0 commit comments