|
| 1 | +# Docker PHP Base Image |
| 2 | + |
| 3 | + [](https://cloud.drone.io/fabiodcorreia/docker-base-php) [](https://github.com/fabiodcorreia/docker-base-php/releases/latest) [](https://github.com/fabiodcorreia/docker-base-php/blob/master/LICENSE) |
| 4 | + |
| 5 | + |
| 6 | + [](https://hub.docker.com/r/fabiodcorreia/base-php) [](https://hub.docker.com/r/fabiodcorreia/base-php)  |
| 7 | + |
| 8 | +A custom PHP base image built with Alpine Linux. |
| 9 | + |
| 10 | +## Base Packages |
| 11 | + |
| 12 | +- nginx |
| 13 | +- php7 |
| 14 | +- php7-fpm |
| 15 | +- php7-fileinfo |
| 16 | +- php7-json |
| 17 | +- php7-mbstring |
| 18 | +- php7-openssl |
| 19 | +- php7-session |
| 20 | +- php7-simplexml |
| 21 | +- php7-xml |
| 22 | +- php7-xmlwriter |
| 23 | +- php7-zlib |
| 24 | + |
| 25 | +## Versioning |
| 26 | + |
| 27 | +This image follows the [Semantic Versioning](https://semver.org/) pattern. |
| 28 | + |
| 29 | +- **MAJOR** version - Changes on Base Image version (1.0.0 to 2.0.0) |
| 30 | +- **MINOR** version - Changes on PHP version (7.3.19 to 7.3.20) |
| 31 | +- **PATCH** version - Package updates and other non breaking changes on the image |
| 32 | +- **DRAFT** version - Unstable build for review (Optional) |
| 33 | + |
| 34 | +### Version Mapping |
| 35 | + |
| 36 | +| Version | 1.0 | 1.1 | 2.0 | |
| 37 | +| :----: | --- | --- | ---- | |
| 38 | +| Base Image | 1.x.x | 1.x.x | 2.x.x | |
| 39 | +| PHP | 7.3.19 | 7.3.20 | 7.3.19 | |
| 40 | + |
| 41 | +When Base Image gets upgraded the major version is incremented, when PHP gets upgraded the minor version is incremented. |
| 42 | + |
| 43 | +## Tags |
| 44 | + |
| 45 | +| Tag | Description | |
| 46 | +| :----: | --- | |
| 47 | +| latest | Latest version | |
| 48 | +| 1.0.0 | Specific patch version | |
| 49 | +| 1.0 | Specific minor version | |
| 50 | +| 1 | Specific major version | |
| 51 | +| 1.0.0-`arch` | Specific patch version to that `arch` | |
| 52 | +| 1.0-`arch` | Specific minor version to that `arch` | |
| 53 | +| 1-`arch` | Specific major version to that `arch` | |
| 54 | +| test | Branch version - **DO NOT USE** | |
| 55 | + |
| 56 | +The version tags are the same as the repository versioning tags but without the `v`. The `test` version is only for build purposes, it should not be pulled. |
| 57 | + |
| 58 | +The `arch` can be one of the supported architectures described below. |
| 59 | + |
| 60 | +## Supported Architectures |
| 61 | + |
| 62 | +| Architecture | Tag | |
| 63 | +| :----: | --- | |
| 64 | +| x86-64 | amd64 | |
| 65 | +| arm64 | arm64v8 | |
| 66 | +| armhf | arm32v7 | |
| 67 | + |
| 68 | + |
| 69 | +## Environment Variables |
| 70 | + |
| 71 | +| Name | Description | |
| 72 | +| :-----------------: | ----------- | |
| 73 | +| PUID | Set the UserID - [Details](https://github.com/fabiodcorreia/docker-base-alpine#userid--groupid) | |
| 74 | +| PGID | Set the GroupID - [Details](https://github.com/fabiodcorreia/docker-base-alpine#userid--groupid) | |
| 75 | +| TZ | Set the system timezone - [Options](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) | |
0 commit comments