-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path7.3.dockerfile
More file actions
19 lines (15 loc) · 863 Bytes
/
7.3.dockerfile
File metadata and controls
19 lines (15 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM registry.gitlab.com/tozd/docker/nginx-cron:ubuntu-noble
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.3-cgi php7.3-cli php7.3-pgsql php7.3-mysql php7.3-gd adduser --yes --force-yes && \
adduser --system --group fcgi-php --home /var/lib/php && \
for file in /etc/php/7.3/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/nginx /etc/nginx
COPY ./etc/service/php /etc/service/php
COPY ./php /etc/php/7.3