disable access_logs

This commit is contained in:
Andras Bacsai 2023-05-26 10:37:18 +02:00
parent bb0554c727
commit 6e3cc9d1f9
4 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY docker/dev-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc

View File

@ -0,0 +1,4 @@
# Custom nginx configuration
# Disable access logs
access_log off;

View File

@ -10,6 +10,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs jq RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs jq
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY docker/prod-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
COPY composer.json composer.lock ./ COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist

View File

@ -0,0 +1,4 @@
# Custom nginx configuration
# Disable access logs
access_log off;