Skip to content

Commit 7c25f70

Browse files
committed
Remove some useless parts
1 parent 82ded75 commit 7c25f70

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ FROM php:${PHP_VERSION}-fpm as app
1414
ARG ICU_VERSION
1515
ARG 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-
2117
WORKDIR /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 { \
7875
RUN { \
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

8481
CMD ["php-fpm"]

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ tty:
4343

4444
clear: 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

docker/nginx-default.conf

-13
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,10 @@
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)(/.*)$;

0 commit comments

Comments
 (0)