Skip to content

Commit

Permalink
schema:dump command now available (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucan-lab authored Dec 2, 2023
1 parent 1e3b70f commit a0a7c66
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions infra/docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand All @@ -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/*

0 comments on commit a0a7c66

Please sign in to comment.