diff --git a/.docker/nginx/diplom.conf b/.docker/nginx/diplom.conf index 917caac..a02061f 100644 --- a/.docker/nginx/diplom.conf +++ b/.docker/nginx/diplom.conf @@ -23,6 +23,10 @@ server { deny all; } + location ~ (Dockerfile|docker-compose\.yml) { + deny all; + } + location /vendor { deny all; } diff --git a/Dockerfile b/Dockerfile index 19248cf..8c8da3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.1-fpm-bookworm +FROM php:8.3-fpm-bookworm ARG user ARG uid @@ -13,9 +13,9 @@ RUN apt update # https://github.com/docker-library/docs/tree/master/php#php-core-extensions # IDK if this is necessary, but probably doesn't hurt RUN apt install -y ttf-mscorefonts-installer libfreetype-dev libjpeg62-turbo-dev libpng-dev -RUN apt install -y nginx git +RUN apt install -y nginx git zip unzip libzip-dev RUN docker-php-ext-configure gd --with-freetype --with-jpeg -RUN docker-php-ext-install gd +RUN docker-php-ext-install gd zip COPY .docker/nginx/diplom.conf /etc/nginx/sites-enabled/default