File tree 3 files changed +3
-20
lines changed
3 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,11 @@ FROM php:${PHP_VERSION}-fpm as app
14
14
ARG ICU_VERSION
15
15
ARG APCU_VERSION
16
16
17
- # Used for the ICU compilation
18
- ENV PHP_CPPFLAGS="${PHP_CPPFLAGS} -std=c++11"
19
- ENV APP_VERSION=0.0.0
20
-
21
17
WORKDIR /app
22
18
23
19
# Install paquet requirements
24
- RUN set -ex; \
20
+ RUN export PHP_CPPFLAGS="${PHP_CPPFLAGS} -std=c++11" \
21
+ set -ex; \
25
22
# Install required system packages
26
23
apt-get update; \
27
24
apt-get install -qy --no-install-recommends \
@@ -78,7 +75,7 @@ RUN { \
78
75
RUN { \
79
76
echo 'date.timezone = Europe/Paris' ; \
80
77
echo 'short_open_tag = off' ; \
81
- echo 'memory_limit = 8192M ' ; \
78
+ echo 'memory_limit = -1 ' ; \
82
79
} > /usr/local/etc/php/php-cli.ini
83
80
84
81
CMD ["php-fpm" ]
Original file line number Diff line number Diff line change 43
43
44
44
clear : perm # # Remove all the cache, the logs, the sessions and the built assets
45
45
$(EXEC ) rm -rf var/cache/*
46
- $(EXEC ) $(CONSOLE ) redis:flushall -n
47
46
rm -rf var/log/*
48
47
rm -rf public/build
49
48
rm -f var/.php_cs.cache
Original file line number Diff line number Diff line change 3
3
server_name _;
4
4
root /app/public;
5
5
6
- add_header X-Content-Type-Options nosniff;
7
- add_header X-XSS-Protection "1; mode=block";
8
- add_header X-Frame-Options SAMEORIGIN;
9
-
10
- if ($http_user_agent ~* "WordPress") {
11
- return 403;
12
- }
13
-
14
6
location / {
15
7
try_files $uri /index.php$is_args$args;
16
8
}
17
9
18
- location /protected-files/ {
19
- internal;
20
- alias /app/files/;
21
- }
22
-
23
10
location ~ ^/index\.php(/|$) {
24
11
fastcgi_pass app:9000;
25
12
fastcgi_split_path_info ^(.+\.php)(/.*)$;
You can’t perform that action at this time.
0 commit comments