https://github.com/darkikim/php-distroless
Repository for a distroless php container
https://github.com/darkikim/php-distroless
distroless distroless-docker php
Last synced: 6 months ago
JSON representation
Repository for a distroless php container
- Host: GitHub
- URL: https://github.com/darkikim/php-distroless
- Owner: darkikim
- License: apache-2.0
- Created: 2022-06-14T10:42:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T15:14:55.000Z (over 3 years ago)
- Last Synced: 2023-03-11T16:36:00.153Z (over 3 years ago)
- Topics: distroless, distroless-docker, php
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Respository for PHP Distroless Images
This repository contains distroless images for PHP 8+.
Image will follow alpine package for php so there will be no PHP 7.4 version of this distroless php.
As soon as a new PHP version is given is alpine package it will be given in this repository.
For an Official PHP list of PHP supported version please go to this link :
https://www.php.net/supported-versions.php
Nginx is already added to PHP-FPM images but you will need to provide your own default.conf for your website to be accessed.
To use the image build use the github container registry : https://ghcr.io/darkikim/php-distroless
Example docker-compose.yaml :
```yml
version: '3.7'
services:
distroless:
restart: unless-stopped
image: ghcr.io/darkikim/php-distroless:8.1-fpm
ports:
- "80:80"
volumes:
- ./webapp:/var/www
- ./docker/config/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/config/nginx.conf:/etc/nginx/nginx.conf
```
nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)
2022/09/25 14:38:56 [emerg] 367#367: mkdir() "/var/lib/nginx/tmp/client_body" failed (13: Permission denied)