-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-7.4
More file actions
40 lines (30 loc) · 1.16 KB
/
Dockerfile-7.4
File metadata and controls
40 lines (30 loc) · 1.16 KB
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
FROM php:7.4-apache
ARG NODEJS_DISABLE=1
# https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-%28v2.x%29#Configuration_Directives
ENV WEB_ROOT=/app \
WEB_PORT=80 \
COMPOSER_CACHE_DIR=/dev/null \
COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_NO_INTERACTION=1 \
SecRuleEngine=DetectionOnly \
SecRequestBodyAccess=On \
SecRequestBodyLimit=13107200 \
SecRequestBodyNoFilesLimit=131072 \
SecRequestBodyInMemoryLimit=131072 \
SecRequestBodyLimitAction=ProcessPartial \
SecResponseBodyAccess=On \
SecResponseBodyMimeType="text/plain text/html text/xml" \
SecResponseBodyLimit=524288 \
SecResponseBodyLimitAction=ProcessPartial \
SecTmpDir=/tmp/ \
SecDataDir=/tmp/ \
SecAuditEngine=Off \
SecAuditLogParts=ABDEFHIJZ \
SecStatusEngine=On
COPY apache2-foreground-user install-php /usr/local/bin/
COPY ./xhgui/ /xhgui/
RUN /usr/local/bin/install-php && rm /usr/local/bin/install-php
WORKDIR /app
ENTRYPOINT ["/usr/bin/dumb-init","--rewrite","28:0", "--"]
CMD ["apache2-foreground-user"]
# VOLUME /app/data