├── .gitattributes ├── .github └── workflows │ ├── build-auxiliary-images.yml │ ├── build-integration-images.yml │ └── build-php-images.yml ├── .gitignore ├── README.md ├── auxiliary ├── 7.1-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.1-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.2-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.2-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.3-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.3-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.4-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 7.4-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.0-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.0-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.1-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.1-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.2-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.2-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── 8.3-cli-cron │ ├── Dockerfile │ └── Dockerfile-alpine └── 8.3-cli-supervisor │ ├── Dockerfile │ └── Dockerfile-alpine ├── integration ├── 7.1-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 7.2-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 7.3-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 7.4-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 8.0-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 8.1-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf ├── 8.2-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf └── 8.3-integration │ ├── Dockerfile │ ├── Dockerfile-alpine │ ├── docker-integration-alpine.ini │ └── docker-integration.conf └── php ├── 7.1-cli ├── Dockerfile └── Dockerfile-alpine ├── 7.1-fpm ├── Dockerfile └── Dockerfile-alpine ├── 7.2-cli ├── Dockerfile └── Dockerfile-alpine ├── 7.2-fpm ├── Dockerfile └── Dockerfile-alpine ├── 7.3-cli ├── Dockerfile └── Dockerfile-alpine ├── 7.3-fpm ├── Dockerfile └── Dockerfile-alpine ├── 7.4-cli ├── Dockerfile └── Dockerfile-alpine ├── 7.4-fpm ├── Dockerfile └── Dockerfile-alpine ├── 8.0-cli ├── Dockerfile └── Dockerfile-alpine ├── 8.0-fpm ├── Dockerfile └── Dockerfile-alpine ├── 8.1-cli ├── Dockerfile └── Dockerfile-alpine ├── 8.1-fpm ├── Dockerfile └── Dockerfile-alpine ├── 8.2-cli ├── Dockerfile └── Dockerfile-alpine ├── 8.2-fpm ├── Dockerfile └── Dockerfile-alpine ├── 8.3-cli ├── Dockerfile └── Dockerfile-alpine └── 8.3-fpm ├── Dockerfile └── Dockerfile-alpine /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /.github/workflows/build-auxiliary-images.yml: -------------------------------------------------------------------------------- 1 | name: Build Auxiliary Images 2 | 3 | on: 4 | # push: 5 | # branches: [ main ] 6 | 7 | workflow_dispatch: 8 | 9 | schedule: 10 | - cron: '0 18 * * 6' 11 | 12 | jobs: 13 | build_and_push_php: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | strategy: 18 | matrix: 19 | version: 20 | - "7.1" 21 | - "7.2" 22 | - "7.3" 23 | - "7.4" 24 | - "8.0" 25 | - "8.1" 26 | - "8.2" 27 | - "8.3" 28 | 29 | steps: 30 | - name: Checkout 31 | uses: actions/checkout@v3 32 | 33 | - name: Login to DockerHub 34 | uses: docker/login-action@v2 35 | with: 36 | username: ${{ secrets.DOCKERHUB_USERNAME }} 37 | password: ${{ secrets.DOCKERHUB_TOKEN }} 38 | 39 | - name: Build and push ${{ matrix.version }}-cli-supervisor 40 | uses: docker/build-push-action@v4 41 | with: 42 | context: ./auxiliary/${{ matrix.version }}-cli-supervisor 43 | push: true 44 | tags: | 45 | suyar/php:${{ matrix.version }}-cli-supervisor 46 | 47 | - name: Build and push ${{ matrix.version }}-cli-alpine-supervisor 48 | uses: docker/build-push-action@v4 49 | with: 50 | context: ./auxiliary/${{ matrix.version }}-cli-supervisor 51 | file: ./auxiliary/${{ matrix.version }}-cli-supervisor/Dockerfile-alpine 52 | push: true 53 | tags: | 54 | suyar/php:${{ matrix.version }}-cli-alpine-supervisor 55 | 56 | - name: Build and push ${{ matrix.version }}-cli-cron 57 | uses: docker/build-push-action@v4 58 | with: 59 | context: ./auxiliary/${{ matrix.version }}-cli-cron 60 | push: true 61 | tags: | 62 | suyar/php:${{ matrix.version }}-cli-cron 63 | 64 | - name: Build and push ${{ matrix.version }}-cli-alpine-cron 65 | uses: docker/build-push-action@v4 66 | with: 67 | context: ./auxiliary/${{ matrix.version }}-cli-cron 68 | file: ./auxiliary/${{ matrix.version }}-cli-cron/Dockerfile-alpine 69 | push: true 70 | tags: | 71 | suyar/php:${{ matrix.version }}-cli-alpine-cron 72 | -------------------------------------------------------------------------------- /.github/workflows/build-integration-images.yml: -------------------------------------------------------------------------------- 1 | name: Build Integration Images 2 | 3 | on: 4 | # push: 5 | # branches: [ main ] 6 | 7 | workflow_dispatch: 8 | 9 | schedule: 10 | - cron: '0 19 * * 6' 11 | 12 | jobs: 13 | build_and_push_php: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | strategy: 18 | matrix: 19 | version: 20 | - "7.1" 21 | - "7.2" 22 | - "7.3" 23 | - "7.4" 24 | - "8.0" 25 | - "8.1" 26 | - "8.2" 27 | - "8.3" 28 | 29 | steps: 30 | - name: Checkout 31 | uses: actions/checkout@v3 32 | 33 | - name: Login to DockerHub 34 | uses: docker/login-action@v2 35 | with: 36 | username: ${{ secrets.DOCKERHUB_USERNAME }} 37 | password: ${{ secrets.DOCKERHUB_TOKEN }} 38 | 39 | - name: Build and push ${{ matrix.version }}-integration 40 | uses: docker/build-push-action@v4 41 | with: 42 | context: ./integration/${{ matrix.version }}-integration 43 | push: true 44 | tags: | 45 | suyar/php:${{ matrix.version }}-integration 46 | 47 | - name: Build and push ${{ matrix.version }}-alpine-integration 48 | uses: docker/build-push-action@v4 49 | with: 50 | context: ./integration/${{ matrix.version }}-integration 51 | file: ./integration/${{ matrix.version }}-integration/Dockerfile-alpine 52 | push: true 53 | tags: | 54 | suyar/php:${{ matrix.version }}-alpine-integration 55 | -------------------------------------------------------------------------------- /.github/workflows/build-php-images.yml: -------------------------------------------------------------------------------- 1 | name: Build PHP Images 2 | 3 | on: 4 | # push: 5 | # branches: [ main ] 6 | 7 | workflow_dispatch: 8 | 9 | schedule: 10 | - cron: '0 12 * * 6' 11 | 12 | jobs: 13 | build_and_push_php: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | strategy: 18 | matrix: 19 | version: 20 | - "7.1" 21 | - "7.2" 22 | - "7.3" 23 | - "7.4" 24 | - "8.0" 25 | - "8.1" 26 | - "8.2" 27 | - "8.3" 28 | 29 | steps: 30 | - name: Checkout 31 | uses: actions/checkout@v3 32 | 33 | - name: Login to DockerHub 34 | uses: docker/login-action@v2 35 | with: 36 | username: ${{ secrets.DOCKERHUB_USERNAME }} 37 | password: ${{ secrets.DOCKERHUB_TOKEN }} 38 | 39 | - name: Build and push ${{ matrix.version }}-cli 40 | uses: docker/build-push-action@v4 41 | with: 42 | context: ./php/${{ matrix.version }}-cli 43 | push: true 44 | tags: | 45 | suyar/php:${{ matrix.version }}-cli 46 | 47 | - name: Build and push ${{ matrix.version }}-fpm 48 | uses: docker/build-push-action@v4 49 | with: 50 | context: ./php/${{ matrix.version }}-fpm 51 | push: true 52 | tags: | 53 | suyar/php:${{ matrix.version }}-fpm 54 | 55 | - name: Build and push ${{ matrix.version }}-cli-alpine 56 | uses: docker/build-push-action@v4 57 | with: 58 | context: ./php/${{ matrix.version }}-cli 59 | file: ./php/${{ matrix.version }}-cli/Dockerfile-alpine 60 | push: true 61 | tags: | 62 | suyar/php:${{ matrix.version }}-cli-alpine 63 | 64 | - name: Build and push ${{ matrix.version }}-fpm-alpine 65 | uses: docker/build-push-action@v4 66 | with: 67 | context: ./php/${{ matrix.version }}-fpm 68 | file: ./php/${{ matrix.version }}-fpm/Dockerfile-alpine 69 | push: true 70 | tags: | 71 | suyar/php:${{ matrix.version }}-fpm-alpine 72 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker Images For PHP 2 | 3 | [![docker pulls](https://img.shields.io/docker/pulls/suyar/php)](https://hub.docker.com/r/suyar/php) 4 | 5 | ## 仓库概述 6 | 7 | 基于官方镜像的 PHP 镜像,已安装常用扩展。 8 | 9 | PHP 版本生命周期参考 [PHP 版本支持](https://www.php.net/supported-versions.php) 10 | 11 | - 基于 [PHP Official Images](https://hub.docker.com/_/php) 12 | - 基于 [docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer) 13 | - 基于 `GitHub Actions` 自动构建 14 | 15 | ## 更新日志 16 | 17 | - [2023-06-28] 移除 `php7.0` 构建支持,之前构建的镜像依然可以使用,具体原因可以查看 [#763](https://github.com/mlocati/docker-php-extension-installer/pull/763) 18 | - [2023-12-01] 新增 `php8.3` 构建支持,目前 `imagick` 还不支持该版本 19 | 20 | ## 构建镜像 21 | 22 | ### 主要镜像 23 | 24 | 这些镜像都是从官方镜像构建的,不包含其他第三方软件。 25 | 26 | - PHP 7.0 27 | - [`suyar/php:7.0-fpm`](https://hub.docker.com/r/suyar/php/tags?name=7.0-fpm) 28 | - [`suyar/php:7.0-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.0-fpm-alpine) 29 | - [`suyar/php:7.0-cli`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli) 30 | - [`suyar/php:7.0-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli-alpine) 31 | - PHP 7.1 32 | - [`suyar/php:7.1-fpm`](https://hub.docker.com/r/suyar/php/tags?name=7.1-fpm) 33 | - [`suyar/php:7.1-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.1-fpm-alpine) 34 | - [`suyar/php:7.1-cli`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli) 35 | - [`suyar/php:7.1-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli-alpine) 36 | - PHP 7.2 37 | - [`suyar/php:7.2-fpm`](https://hub.docker.com/r/suyar/php/tags?name=7.2-fpm) 38 | - [`suyar/php:7.2-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.2-fpm-alpine) 39 | - [`suyar/php:7.2-cli`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli) 40 | - [`suyar/php:7.2-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli-alpine) 41 | - PHP 7.3 42 | - [`suyar/php:7.3-fpm`](https://hub.docker.com/r/suyar/php/tags?name=7.3-fpm) 43 | - [`suyar/php:7.3-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.3-fpm-alpine) 44 | - [`suyar/php:7.3-cli`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli) 45 | - [`suyar/php:7.3-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli-alpine) 46 | - PHP 7.4 47 | - [`suyar/php:7.4-fpm`](https://hub.docker.com/r/suyar/php/tags?name=7.4-fpm) 48 | - [`suyar/php:7.4-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.4-fpm-alpine) 49 | - [`suyar/php:7.4-cli`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli) 50 | - [`suyar/php:7.4-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli-alpine) 51 | - PHP 8.0 52 | - [`suyar/php:8.0-fpm`](https://hub.docker.com/r/suyar/php/tags?name=8.0-fpm) 53 | - [`suyar/php:8.0-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.0-fpm-alpine) 54 | - [`suyar/php:8.0-cli`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli) 55 | - [`suyar/php:8.0-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli-alpine) 56 | - PHP 8.1 57 | - [`suyar/php:8.1-fpm`](https://hub.docker.com/r/suyar/php/tags?name=8.1-fpm) 58 | - [`suyar/php:8.1-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.1-fpm-alpine) 59 | - [`suyar/php:8.1-cli`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli) 60 | - [`suyar/php:8.1-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli-alpine) 61 | - PHP 8.2 62 | - [`suyar/php:8.2-fpm`](https://hub.docker.com/r/suyar/php/tags?name=8.2-fpm) 63 | - [`suyar/php:8.2-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.2-fpm-alpine) 64 | - [`suyar/php:8.2-cli`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli) 65 | - [`suyar/php:8.2-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli-alpine) 66 | - PHP 8.3 67 | - [`suyar/php:8.3-fpm`](https://hub.docker.com/r/suyar/php/tags?name=8.3-fpm) 68 | - [`suyar/php:8.3-fpm-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.3-fpm-alpine) 69 | - [`suyar/php:8.3-cli`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli) 70 | - [`suyar/php:8.3-cli-alpine`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli-alpine) 71 | 72 | ### 辅助镜像 73 | 74 | 这些镜像都是从『主要镜像』构建的,包含 `supervisor` 或 `cron`。 75 | 76 | - PHP 7.0 77 | - [`suyar/php:7.0-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli-supervisor) 78 | - [`suyar/php:7.0-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli-alpine-supervisor) 79 | - [`suyar/php:7.0-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli-cron) 80 | - [`suyar/php:7.0-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.0-cli-alpine-cron) 81 | - PHP 7.1 82 | - [`suyar/php:7.1-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli-supervisor) 83 | - [`suyar/php:7.1-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli-alpine-supervisor) 84 | - [`suyar/php:7.1-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli-cron) 85 | - [`suyar/php:7.1-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.1-cli-alpine-cron) 86 | - PHP 7.2 87 | - [`suyar/php:7.2-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli-supervisor) 88 | - [`suyar/php:7.2-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli-alpine-supervisor) 89 | - [`suyar/php:7.2-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli-cron) 90 | - [`suyar/php:7.2-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.2-cli-alpine-cron) 91 | - PHP 7.3 92 | - [`suyar/php:7.3-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli-supervisor) 93 | - [`suyar/php:7.3-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli-alpine-supervisor) 94 | - [`suyar/php:7.3-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli-cron) 95 | - [`suyar/php:7.3-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.3-cli-alpine-cron) 96 | - PHP 7.4 97 | - [`suyar/php:7.4-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli-supervisor) 98 | - [`suyar/php:7.4-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli-alpine-supervisor) 99 | - [`suyar/php:7.4-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli-cron) 100 | - [`suyar/php:7.4-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=7.4-cli-alpine-cron) 101 | - PHP 8.0 102 | - [`suyar/php:8.0-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli-supervisor) 103 | - [`suyar/php:8.0-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli-alpine-supervisor) 104 | - [`suyar/php:8.0-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli-cron) 105 | - [`suyar/php:8.0-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.0-cli-alpine-cron) 106 | - PHP 8.1 107 | - [`suyar/php:8.1-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli-supervisor) 108 | - [`suyar/php:8.1-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli-alpine-supervisor) 109 | - [`suyar/php:8.1-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli-cron) 110 | - [`suyar/php:8.1-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.1-cli-alpine-cron) 111 | - PHP 8.2 112 | - [`suyar/php:8.2-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli-supervisor) 113 | - [`suyar/php:8.2-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli-alpine-supervisor) 114 | - [`suyar/php:8.2-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli-cron) 115 | - [`suyar/php:8.2-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.2-cli-alpine-cron) 116 | - PHP 8.3 117 | - [`suyar/php:8.3-cli-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli-supervisor) 118 | - [`suyar/php:8.3-cli-alpine-supervisor`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli-alpine-supervisor) 119 | - [`suyar/php:8.3-cli-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli-cron) 120 | - [`suyar/php:8.3-cli-alpine-cron`](https://hub.docker.com/r/suyar/php/tags?name=8.3-cli-alpine-cron) 121 | 122 | ## 集成镜像 123 | 124 | 这些镜像都是从『主要镜像』构建的,包含 `composer`、`php-fpm`、`supervisor` 和 `cron`,其中 `php-fpm` 和 `cron` 使用 `supervisor` 管理。 125 | 126 | - PHP 7.0 127 | - [`suyar/php:7.0-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.0-integration) 128 | - [`suyar/php:7.0-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.0-alpine-integration) 129 | - PHP 7.1 130 | - [`suyar/php:7.1-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.1-integration) 131 | - [`suyar/php:7.1-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.1-alpine-integration) 132 | - PHP 7.2 133 | - [`suyar/php:7.2-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.2-integration) 134 | - [`suyar/php:7.2-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.2-alpine-integration) 135 | - PHP 7.3 136 | - [`suyar/php:7.3-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.3-integration) 137 | - [`suyar/php:7.3-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.3-alpine-integration) 138 | - PHP 7.4 139 | - [`suyar/php:7.4-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.4-integration) 140 | - [`suyar/php:7.4-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=7.4-alpine-integration) 141 | - PHP 8.0 142 | - [`suyar/php:8.0-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.0-integration) 143 | - [`suyar/php:8.0-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.0-alpine-integration) 144 | - PHP 8.1 145 | - [`suyar/php:8.1-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.1-integration) 146 | - [`suyar/php:8.1-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.1-alpine-integration) 147 | - PHP 8.2 148 | - [`suyar/php:8.2-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.2-integration) 149 | - [`suyar/php:8.2-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.2-alpine-integration) 150 | - PHP 8.3 151 | - [`suyar/php:8.3-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.3-integration) 152 | - [`suyar/php:8.3-alpine-integration`](https://hub.docker.com/r/suyar/php/tags?name=8.3-alpine-integration) 153 | 154 | ## 使用镜像 155 | 156 | ``` 157 | docker pull suyar/php:8.2-fpm 158 | ``` 159 | 160 | 镜像仓库 [https://hub.docker.com/r/suyar/php](https://hub.docker.com/r/suyar/php) 161 | 162 | 更多用法请参考 [PHP 官方镜像](https://hub.docker.com/_/php) 163 | 164 | ## 预装扩展 165 | 166 | 预装扩展请以对应镜像的 `Dockerfile` 文件为准。 167 | 168 | ``` 169 | docker run --rm suyar/php:8.2-cli php -m 170 | 171 | [PHP Modules] 172 | amqp 173 | apcu 174 | bcmath 175 | bz2 176 | calendar 177 | Core 178 | ctype 179 | curl 180 | date 181 | decimal 182 | dom 183 | enchant 184 | event 185 | exif 186 | fileinfo 187 | filter 188 | ftp 189 | gd 190 | gettext 191 | gmp 192 | hash 193 | iconv 194 | igbinary 195 | imagick 196 | intl 197 | json 198 | libxml 199 | lzf 200 | mbstring 201 | memcached 202 | mongodb 203 | msgpack 204 | mysqli 205 | mysqlnd 206 | openssl 207 | pcntl 208 | pcre 209 | PDO 210 | pdo_mysql 211 | pdo_pgsql 212 | pdo_sqlite 213 | pgsql 214 | Phar 215 | posix 216 | random 217 | readline 218 | redis 219 | Reflection 220 | session 221 | SimpleXML 222 | sockets 223 | sodium 224 | SPL 225 | sqlite3 226 | standard 227 | swoole 228 | tidy 229 | timezonedb 230 | tokenizer 231 | uuid 232 | xlswriter 233 | xml 234 | xmlreader 235 | xmlwriter 236 | xsl 237 | yac 238 | yaml 239 | Zend OPcache 240 | zip 241 | zlib 242 | 243 | [Zend Modules] 244 | Zend OPcache 245 | ``` 246 | -------------------------------------------------------------------------------- /auxiliary/7.1-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.1-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/7.1-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.1-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/7.2-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.2-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/7.2-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.2-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/7.3-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.3-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/7.3-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.3-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/7.4-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.4-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/7.4-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/7.4-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/8.0-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.0-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/8.0-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.0-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/8.1-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.1-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/8.1-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.1-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/8.2-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.2-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/8.2-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.2-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /auxiliary/8.3-cli-cron/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["cron","-f"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.3-cli-cron/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-cli-alpine 2 | 3 | CMD ["crond","-f"] 4 | -------------------------------------------------------------------------------- /auxiliary/8.3-cli-supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-cli 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 9 | -------------------------------------------------------------------------------- /auxiliary/8.3-cli-supervisor/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-cli-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 7 | -------------------------------------------------------------------------------- /integration/7.1-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer:1 /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/7.1-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.1-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer:1 /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/7.1-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.1-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.2-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/7.2-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.2-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/7.2-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.2-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.3-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/7.3-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.3-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/7.3-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.3-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.4-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/7.4-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:7.4-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/7.4-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/7.4-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.0-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/8.0-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.0-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/8.0-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.0-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.1-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/8.1-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.1-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/8.1-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.1-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.2-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/8.2-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.2-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/8.2-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.2-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.3-integration/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-fpm 2 | 3 | RUN set -eux; \ 4 | apt-get update \ 5 | && apt-get install -y supervisor cron \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | COPY --from=composer /usr/bin/composer /usr/bin/composer 9 | COPY ./docker-integration.conf /etc/supervisor/conf.d/ 10 | 11 | RUN chmod -R 644 /etc/supervisor/conf.d/*.conf 12 | 13 | CMD ["supervisord","-c","/etc/supervisor/supervisord.conf","-n"] 14 | -------------------------------------------------------------------------------- /integration/8.3-integration/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM suyar/php:8.3-fpm-alpine 2 | 3 | RUN set -eux; \ 4 | apk add --no-cache supervisor 5 | 6 | COPY --from=composer /usr/bin/composer /usr/bin/composer 7 | COPY ./docker-integration-alpine.ini /etc/supervisor.d/ 8 | 9 | RUN chmod -R 644 /etc/supervisor.d/*.ini 10 | 11 | CMD ["supervisord","-c","/etc/supervisord.conf","-n"] 12 | -------------------------------------------------------------------------------- /integration/8.3-integration/docker-integration-alpine.ini: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=crond -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /integration/8.3-integration/docker-integration.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command=php-fpm -R 3 | process_name=%(program_name)s_%(process_num)02d 4 | numprocs=1 5 | autostart=true 6 | startretries=3 7 | autorestart=true 8 | stopwaitsecs=60 9 | redirect_stderr=true 10 | stdout_logfile=/dev/stdout 11 | stdout_logfile_maxbytes=0 12 | stdout_logfile_backups=0 13 | 14 | [program:cron] 15 | command=cron -f 16 | process_name=%(program_name)s_%(process_num)02d 17 | numprocs=1 18 | autostart=true 19 | startretries=3 20 | autorestart=true 21 | stopwaitsecs=60 22 | redirect_stderr=true 23 | stdout_logfile=/dev/stdout 24 | stdout_logfile_maxbytes=0 25 | stdout_logfile_backups=0 26 | -------------------------------------------------------------------------------- /php/7.1-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.1-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/7.1-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.1-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/7.1-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.1-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/7.1-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.1-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/7.2-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/7.2-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.2-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/7.2-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/7.2-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.2-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/7.3-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.3-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/7.3-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.3-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/7.3-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.3-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/7.3-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.3-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/7.4-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.4-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/7.4-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.4-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/7.4-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.4-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/7.4-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:7.4-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/8.0-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.0-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/8.0-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.0-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/8.0-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.0-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/8.0-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.0-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/8.1-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.1-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/8.1-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.1-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/8.1-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.1-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/8.1-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.1-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/8.2-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.2-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | -------------------------------------------------------------------------------- /php/8.2-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.2-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | -------------------------------------------------------------------------------- /php/8.2-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.2-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | -------------------------------------------------------------------------------- /php/8.2-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.2-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | imagick \ 24 | intl \ 25 | lzf \ 26 | memcached \ 27 | mongodb \ 28 | msgpack \ 29 | mysqli \ 30 | opcache \ 31 | pcntl \ 32 | pdo_mysql \ 33 | pdo_pgsql \ 34 | pgsql \ 35 | redis \ 36 | sockets \ 37 | swoole \ 38 | tidy \ 39 | timezonedb \ 40 | uuid \ 41 | xlswriter \ 42 | xsl \ 43 | yac \ 44 | yaml \ 45 | zip; \ 46 | apk add --no-cache tzdata 47 | 48 | EXPOSE 9000 49 | CMD ["php-fpm", "-R"] 50 | -------------------------------------------------------------------------------- /php/8.3-cli/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.3-cli 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | intl \ 24 | lzf \ 25 | memcached \ 26 | mongodb \ 27 | msgpack \ 28 | mysqli \ 29 | opcache \ 30 | pcntl \ 31 | pdo_mysql \ 32 | pdo_pgsql \ 33 | pgsql \ 34 | redis \ 35 | sockets \ 36 | swoole \ 37 | tidy \ 38 | timezonedb \ 39 | uuid \ 40 | xlswriter \ 41 | xsl \ 42 | yac \ 43 | yaml \ 44 | zip 45 | -------------------------------------------------------------------------------- /php/8.3-cli/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.3-cli-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | intl \ 24 | lzf \ 25 | memcached \ 26 | mongodb \ 27 | msgpack \ 28 | mysqli \ 29 | opcache \ 30 | pcntl \ 31 | pdo_mysql \ 32 | pdo_pgsql \ 33 | pgsql \ 34 | redis \ 35 | sockets \ 36 | swoole \ 37 | tidy \ 38 | timezonedb \ 39 | uuid \ 40 | xlswriter \ 41 | xsl \ 42 | yac \ 43 | yaml \ 44 | zip; \ 45 | apk add --no-cache tzdata 46 | -------------------------------------------------------------------------------- /php/8.3-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:8.3-fpm 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | intl \ 24 | lzf \ 25 | memcached \ 26 | mongodb \ 27 | msgpack \ 28 | mysqli \ 29 | opcache \ 30 | pcntl \ 31 | pdo_mysql \ 32 | pdo_pgsql \ 33 | pgsql \ 34 | redis \ 35 | sockets \ 36 | swoole \ 37 | tidy \ 38 | timezonedb \ 39 | uuid \ 40 | xlswriter \ 41 | xsl \ 42 | yac \ 43 | yaml \ 44 | zip 45 | 46 | EXPOSE 9000 47 | CMD ["php-fpm", "-R"] 48 | -------------------------------------------------------------------------------- /php/8.3-fpm/Dockerfile-alpine: -------------------------------------------------------------------------------- 1 | FROM php:8.3-fpm-alpine 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 6 | 7 | RUN set -eux; \ 8 | chmod +x /usr/local/bin/install-php-extensions; \ 9 | install-php-extensions \ 10 | amqp \ 11 | apcu \ 12 | bcmath \ 13 | bz2 \ 14 | calendar \ 15 | decimal \ 16 | enchant \ 17 | event \ 18 | exif \ 19 | gd \ 20 | gettext \ 21 | gmp \ 22 | igbinary \ 23 | intl \ 24 | lzf \ 25 | memcached \ 26 | mongodb \ 27 | msgpack \ 28 | mysqli \ 29 | opcache \ 30 | pcntl \ 31 | pdo_mysql \ 32 | pdo_pgsql \ 33 | pgsql \ 34 | redis \ 35 | sockets \ 36 | swoole \ 37 | tidy \ 38 | timezonedb \ 39 | uuid \ 40 | xlswriter \ 41 | xsl \ 42 | yac \ 43 | yaml \ 44 | zip; \ 45 | apk add --no-cache tzdata 46 | 47 | EXPOSE 9000 48 | CMD ["php-fpm", "-R"] 49 | --------------------------------------------------------------------------------