diff --git a/docker/dev-ssu/Dockerfile b/docker/dev-ssu/Dockerfile index 516e9e093..d283f6a56 100644 --- a/docker/dev-ssu/Dockerfile +++ b/docker/dev-ssu/Dockerfile @@ -1,9 +1,7 @@ FROM serversideup/php:8.2-fpm-nginx ARG POSTGRES_VERSION=15 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/* RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc RUN echo "alias a='php artisan'" >>/etc/bash.bashrc diff --git a/docker/prod-ssu/Dockerfile b/docker/prod-ssu/Dockerfile index 856a8d6d3..dda4361cf 100644 --- a/docker/prod-ssu/Dockerfile +++ b/docker/prod-ssu/Dockerfile @@ -8,9 +8,7 @@ FROM serversideup/php:8.2-fpm-nginx WORKDIR /var/www/html ARG POSTGRES_VERSION=15 RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs -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 composer.json composer.lock ./ RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist