File tree Expand file tree Collapse file tree 3 files changed +3
-20
lines changed Expand file tree Collapse file tree 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
1414ARG ICU_VERSION
1515ARG APCU_VERSION
1616
17- # Used for the ICU compilation
18- ENV PHP_CPPFLAGS="${PHP_CPPFLAGS} -std=c++11"
19- ENV APP_VERSION=0.0.0
20-
2117WORKDIR /app
2218
2319# Install paquet requirements
24- RUN set -ex; \
20+ RUN export PHP_CPPFLAGS="${PHP_CPPFLAGS} -std=c++11" \
21+ set -ex; \
2522 # Install required system packages
2623 apt-get update; \
2724 apt-get install -qy --no-install-recommends \
@@ -78,7 +75,7 @@ RUN { \
7875RUN { \
7976 echo 'date.timezone = Europe/Paris' ; \
8077 echo 'short_open_tag = off' ; \
81- echo 'memory_limit = 8192M ' ; \
78+ echo 'memory_limit = -1 ' ; \
8279 } > /usr/local/etc/php/php-cli.ini
8380
8481CMD ["php-fpm" ]
Original file line number Diff line number Diff line change 4343
4444clear : perm # # Remove all the cache, the logs, the sessions and the built assets
4545 $(EXEC ) rm -rf var/cache/*
46- $(EXEC ) $(CONSOLE ) redis:flushall -n
4746 rm -rf var/log/*
4847 rm -rf public/build
4948 rm -f var/.php_cs.cache
Original file line number Diff line number Diff line change 33 server_name _;
44 root /app/public;
55
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-
146 location / {
157 try_files $uri /index.php$is_args$args;
168 }
179
18- location /protected-files/ {
19- internal;
20- alias /app/files/;
21- }
22-
2310 location ~ ^/index\.php(/|$) {
2411 fastcgi_pass app:9000;
2512 fastcgi_split_path_info ^(.+\.php)(/.*)$;
You can’t perform that action at this time.
0 commit comments