-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
94 lines (88 loc) · 2.73 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# syntax=docker/dockerfile:1.5.1
FROM base
ARG TARGETARCH
ARG COMPOSER_VERSION=2.7.7
ARG COMPOSER_FILE=composer.phar
ARG COMPOSER_URL=https://getcomposer.org/download/${COMPOSER_VERSION}/${COMPOSER_FILE}
ARG COMPOSER_SHA256=aab940cd53d285a54c50465820a2080fcb7182a4ba1e5f795abfb10414a4b4be
WORKDIR /var/www
# https://getcomposer.org/download/
# Platform agnostic does not require arch specific identifier.
RUN --mount=type=cache,id=download-downloads-${TARGETARCH},sharing=locked,target=/opt/downloads \
download.sh \
--url "${COMPOSER_URL}" \
--sha256 "${COMPOSER_SHA256}" \
&& \
cp "${DOWNLOAD_CACHE_DIRECTORY}/${COMPOSER_FILE}" /usr/bin/composer && \
chmod a+x /usr/bin/composer && \
cleanup.sh
# Platform specific does require arch specific identifier.
RUN --mount=type=cache,id=nginx-apk-${TARGETARCH},sharing=locked,target=/var/cache/apk \
apk add \
icu-data-full \
nginx \
php83 \
php83-ctype \
php83-curl \
php83-dom \
php83-fileinfo \
php83-fpm \
php83-gd \
php83-iconv \
php83-intl \
php83-json \
php83-ldap \
php83-mbstring \
php83-mysqli \
php83-opcache \
php83-openssl \
php83-pdo \
php83-pdo_mysql \
php83-pdo_pgsql \
php83-phar \
php83-session \
php83-simplexml \
php83-sockets \
php83-tokenizer \
php83-xml \
php83-xmlreader \
php83-xmlwriter \
php83-xsl \
php83-zip \
&& \
addgroup nginx jwt && \
cleanup.sh
ENV \
NGINX_CLIENT_BODY_TIMEOUT=60s \
NGINX_CLIENT_MAX_BODY_SIZE=0 \
NGINX_ERROR_LOG_LEVEL=warn \
NGINX_FASTCGI_CONNECT_TIMEOUT=60s \
NGINX_FASTCGI_READ_TIMEOUT=60s \
NGINX_FASTCGI_SEND_TIMEOUT=60s \
NGINX_KEEPALIVE_TIMEOUT=75s \
NGINX_LINGERING_TIMEOUT=5s \
NGINX_PROXY_CONNECT_TIMEOUT=60s \
NGINX_PROXY_READ_TIMEOUT=60s \
NGINX_PROXY_SEND_TIMEOUT=60s \
NGINX_REAL_IP_HEADER=X-Forwarded-For \
NGINX_REAL_IP_RECURSIVE=off \
NGINX_SEND_TIMEOUT=60s \
NGINX_SET_REAL_IP_FROM=172.0.0.0/8 \
NGINX_SET_REAL_IP_FROM2=172.0.0.0/8 \
NGINX_SET_REAL_IP_FROM3=172.0.0.0/8 \
NGINX_WORKER_CONNECTIONS=1024 \
NGINX_WORKER_PROCESSES=auto \
PHP_DEFAULT_SOCKET_TIMEOUT=60 \
PHP_LOG_LEVEL=notice \
PHP_LOG_LIMIT=16384 \
PHP_MAX_EXECUTION_TIME=30 \
PHP_MAX_FILE_UPLOADS=20 \
PHP_MAX_INPUT_TIME=60 \
PHP_MAX_INPUT_VARS=3000 \
PHP_MEMORY_LIMIT=256M \
PHP_POST_MAX_SIZE=128M \
PHP_PROCESS_CONTROL_TIMEOUT=60 \
PHP_REQUEST_TERMINATE_TIMEOUT=60 \
PHP_UPLOAD_MAX_FILESIZE=128M \
SOLR_HOCR_PLUGIN_PATH=/opt/solr/server/solr/contrib/ocrhighlighting/lib
COPY --link rootfs /