Skip to content

Commit

Permalink
Optimize images using dive #74
Browse files Browse the repository at this point in the history
  • Loading branch information
egorsmkv committed Jan 20, 2024
1 parent 5eb7af3 commit 2469653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ RUN apt update && apt install -y autoconf unzip git libzmq3-dev zlib1g-dev wget
mv /root/.bun/bin/bun /usr/local/bin && \
docker-php-ext-install pgsql pdo_pgsql pcntl bcmath sockets && \
pear channel-update pear.php.net && \
pecl install xhprof excimer xdebug
pecl install xhprof excimer xdebug && \
composer clear-cache && \
rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/zeromq/php-zmq.git && \
cd php-zmq && \
Expand Down
6 changes: 4 additions & 2 deletions prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&
RUN apt update && \
apt install -y autoconf unzip wget git libzmq3-dev libpq-dev && \
docker-php-ext-install pgsql pdo_pgsql pcntl bcmath sockets && \
pecl install excimer
pecl install excimer && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app

Expand Down Expand Up @@ -57,7 +58,8 @@ RUN rm bun.lockb package.json postcss.config.js tailwind.config.js vite.config.j
php artisan optimize && \
php artisan view:cache && \
php artisan route:cache && \
php artisan config:cache
php artisan config:cache && \
composer clear-cache

RUN chown -R daemon:daemon /app && chown -R daemon:daemon /tmp/caddy

Expand Down

0 comments on commit 2469653

Please sign in to comment.