Skip to content

Commit

Permalink
Use minimal docker container for application
Browse files Browse the repository at this point in the history
Go from using a fully featured OS at 729MB to a minimal 78.3MB alpine with fpm and dependencies installed only.
  • Loading branch information
Lusitaniae committed Oct 27, 2018
1 parent 979056a commit fa6bbf8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions resources/docker/app.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
FROM php:7.2.0-fpm

RUN apt-get update && apt-get install -y libmcrypt-dev \
mysql-client libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install pdo_mysql
FROM php:7.2-fpm-alpine
RUN docker-php-ext-install mysqli pdo pdo_mysql

0 comments on commit fa6bbf8

Please sign in to comment.