forked from tozd/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7.4.dockerfile
20 lines (16 loc) · 848 Bytes
/
7.4.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.gitlab.com/tozd/docker/nginx-cron:ubuntu-bionic
ENV FCGI_HOST 127.0.0.1
ENV FCGI_PORT 9000
ENV PHP_FCGI_CHILDREN 2
ENV PHP_FCGI_MAX_REQUESTS 1000
# /var/lib/php is not owned by fcgi-php, but it is world writable and has a sticky bit.
RUN apt-get update -q -q && \
apt-get install software-properties-common language-pack-en-base --yes --force-yes && \
LC_ALL=en_US.UTF-8 add-apt-repository --yes ppa:ondrej/php && \
apt-get update -q -q && \
apt-get install php7.4-cgi php7.4-cli php7.4-pgsql php7.4-mysql php7.4-gd adduser --yes --force-yes && \
adduser --system --group fcgi-php --home /var/lib/php && \
for file in /etc/php/7.4/mods-available/*.ini; do phpenmod $(basename -s .ini "$file"); done && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
COPY ./etc /etc
COPY ./php /etc/php/7.4