From a9ed04d034261ad77efc0be0641e5371b3d81317 Mon Sep 17 00:00:00 2001 From: ucan-lab <35098175+ucan-lab@users.noreply.github.com> Date: Sat, 2 Dec 2023 11:12:11 +0900 Subject: [PATCH] Add mysqldump command --- infra/docker/php/Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/infra/docker/php/Dockerfile b/infra/docker/php/Dockerfile index 3fee8baf..56eb8e97 100644 --- a/infra/docker/php/Dockerfile +++ b/infra/docker/php/Dockerfile @@ -22,8 +22,6 @@ RUN apt-get update \ libzip-dev \ libicu-dev \ libonig-dev \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* \ && locale-gen en_US.UTF-8 \ && localedef -f UTF-8 -i en_US en_US.UTF-8 \ && docker-php-ext-install \ @@ -36,12 +34,17 @@ RUN apt-get update \ FROM base AS development +RUN apt-get -y install --no-install-recommends \ + default-mysql-client \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY ./infra/docker/php/php.development.ini /usr/local/etc/php/php.ini FROM development AS development-xdebug -RUN pecl install xdebug && \ - docker-php-ext-enable xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug COPY ./infra/docker/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini @@ -53,4 +56,6 @@ COPY ./src /workspace RUN composer install -q -n --no-ansi --no-dev --no-scripts --no-progress --prefer-dist \ && chmod -R 777 storage bootstrap/cache \ && php artisan optimize:clear \ - && php artisan optimize + && php artisan optimize \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/*