Skip to content

Commit 64200fb

Browse files
committed
changes
1 parent 6c17c36 commit 64200fb

14 files changed

+150
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ PHP is a server-side scripting language designed for web development, but which
3636

3737
* Environment Variables:
3838
* `TZ` (set timezone, example: "Europe/Berlin")
39-
* `PHP_ERRORS` (set 1 to enable)
40-
* `PHP_MEM_LIMIT` (set Value in MB, example: 128)
41-
* `PHP_POST_MAX_SIZE` (set Value in MB, example: 250)
42-
* `PHP_UPLOAD_MAX_FILESIZE` (set Value in MB, example: 250)
43-
* `PHP_MAX_FILE_UPLOADS` (set number, example: 20)
39+
* `PHP_ERRORS` (set 1 to enable, default: disabled)
40+
* `PHP_MEM_LIMIT` (set Value in MB, example: 256, default: 128)
41+
* `PHP_POST_MAX_SIZE` (set Value in MB, example: 250, default: 8)
42+
* `PHP_UPLOAD_MAX_FILESIZE` (set Value in MB, example: 240, default: 2)
43+
* `PHP_MAX_FILE_UPLOADS` (set number, example: 25, default: 20)
44+
* `PHP_MAX_EXECUTION_TIME` (set Value in Seconds, example: 120, default: 30)
4445
* `CREATE_PHPINFO_FILE` (set 1 to enable, for dev and testing)
4546
* `CREATE_INDEX_FILE` (set 1 to enable, for dev and testing)
4647
* PHP-FPM (only):

alpine.fpm.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ ARG PHP_VERSION=8.4
22
FROM tobi312/php:${PHP_VERSION}-fpm-alpine-slim
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
69

710
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
811
org.opencontainers.image.title="PHP-FPM" \
912
org.opencontainers.image.description="Alpine with PHP-FPM ${PHP_VERSION}" \
13+
org.opencontainers.image.created="${BUILD_DATE}" \
14+
org.opencontainers.image.revision="${VCS_REF}" \
1015
org.opencontainers.image.licenses="MIT" \
1116
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1217
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

alpine.fpm.slim.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ ARG PHP_VERSION=8.4
22
FROM php:${PHP_VERSION}-fpm-alpine
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
69

710
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
811
org.opencontainers.image.title="PHP-FPM" \
912
org.opencontainers.image.description="Alpine with PHP-FPM ${PHP_VERSION}" \
13+
org.opencontainers.image.created="${BUILD_DATE}" \
14+
org.opencontainers.image.revision="${VCS_REF}" \
1015
org.opencontainers.image.licenses="MIT" \
1116
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1217
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

alpine.fpm_nginx.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ ARG PHP_VERSION=8.4
22
FROM tobi312/php:${PHP_VERSION}-fpm-nginx-alpine-slim
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
69

710
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
811
org.opencontainers.image.title="PHP-FPM+NGINX" \
912
org.opencontainers.image.description="Alpine with PHP-FPM ${PHP_VERSION} and NGINX" \
13+
org.opencontainers.image.created="${BUILD_DATE}" \
14+
org.opencontainers.image.revision="${VCS_REF}" \
1015
org.opencontainers.image.licenses="MIT" \
1116
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1217
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

alpine.fpm_nginx.extended.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ ARG PHP_VERSION=8.4
22
FROM tobi312/php:${PHP_VERSION}-fpm-nginx-alpine
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
## example build command: docker build -t tobi312/php:8.1-fpm-nginx-alpine-extended --build-arg PHP_VERSION=8.4 -f alpine.fpm_nginx.extended.Dockerfile .
69

710
# set environment variable

alpine.fpm_nginx.extended.git.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ FROM tobi312/php:${PHP_VERSION}-fpm-nginx-alpine
2828
ARG PHP_VERSION
2929
ARG ARCH
3030

31+
ARG VCS_REF
32+
ARG BUILD_DATE
33+
3134
# set environment variable
3235
ENV ENABLE_NGINX_STATUS=1 \
3336
ENABLE_PHP_FPM_STATUS=1 \

alpine.fpm_nginx.slim.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ ARG PHP_VERSION=8.4
22
FROM php:${PHP_VERSION}-fpm-alpine
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
69

710
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
811
org.opencontainers.image.title="PHP-FPM+NGINX" \
912
org.opencontainers.image.description="Alpine with PHP-FPM ${PHP_VERSION} and NGINX" \
13+
org.opencontainers.image.created="${BUILD_DATE}" \
14+
org.opencontainers.image.revision="${VCS_REF}" \
1015
org.opencontainers.image.licenses="MIT" \
1116
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1217
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

conf/php_70-opcache.ini

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
; https://www.php.net/manual/en/opcache.configuration.php
2+
3+
[opcache]
4+
; Determines if Zend OPCache is enabled (default: 1)
5+
opcache.enable=1
6+
7+
; Determines if Zend OPCache is enabled for the CLI version of PHP (default: 0)
8+
opcache.enable_cli=0
9+
10+
; The OPcache shared memory storage size. (default: 128)
11+
opcache.memory_consumption=192
12+
13+
; The amount of memory for interned strings in Mbytes. (default: 8)
14+
opcache.interned_strings_buffer=16
15+
16+
; The maximum number of keys (scripts) in the OPcache hash table.
17+
; Only numbers between 200 and 1000000 are allowed. (default: 10000)
18+
opcache.max_accelerated_files=10000
19+
20+
; The maximum percentage of "wasted" memory until a restart is scheduled. (default: 5)
21+
opcache.max_wasted_percentage=10
22+
23+
; When disabled, you must reset the OPcache manually or restart the
24+
; webserver for changes to the filesystem to take effect. (default: 1)
25+
opcache.validate_timestamps=1
26+
27+
; How often (in seconds) to check file timestamps for changes to the shared
28+
; memory storage allocation. ("1" means validate once per second, but only
29+
; once per request. "0" means always validate) (default: 2)
30+
opcache.revalidate_freq=2
31+
32+
; If disabled, all PHPDoc comments are dropped from the code to reduce the
33+
; size of the optimized code. (default: 1)
34+
opcache.save_comments=1

debian.apache.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ ARG PHP_VERSION=8.4
22
FROM tobi312/php:${PHP_VERSION}-apache-slim
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
ARG DEBIAN_FRONTEND=noninteractive
69

710
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
811

912
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
1013
org.opencontainers.image.title="PHP+Apache2" \
1114
org.opencontainers.image.description="Debian with PHP ${PHP_VERSION} and Apache2" \
15+
org.opencontainers.image.created="${BUILD_DATE}" \
16+
org.opencontainers.image.revision="${VCS_REF}" \
1217
org.opencontainers.image.licenses="MIT" \
1318
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1419
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

debian.apache.slim.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ ARG PHP_VERSION=8.4
22
FROM php:${PHP_VERSION}-apache
33
ARG PHP_VERSION
44

5+
ARG VCS_REF
6+
ARG BUILD_DATE
7+
58
ARG DEBIAN_FRONTEND=noninteractive
69

710
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
811

912
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <docker@ison.ws>" \
1013
org.opencontainers.image.title="PHP+Apache2" \
1114
org.opencontainers.image.description="Debian with PHP ${PHP_VERSION} and Apache2" \
15+
org.opencontainers.image.created="${BUILD_DATE}" \
16+
org.opencontainers.image.revision="${VCS_REF}" \
1217
org.opencontainers.image.licenses="MIT" \
1318
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
1419
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"

0 commit comments

Comments
 (0)