You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I converted an existing fpm dockerfile to the alpine distro earlier and it dropped the image size from 170mb down to 50mb. This is a naive first attempt and by no means is optimised but certainly is a step in the right direction, the only issue is my fpm image was forked from the laradock image a while back so is likely out of sync and I dont have enough time to bring it up to speed with your own. In theory you should be able to just the optional software section to the below:
FROM php:7.1-fpm-alpine
#
#--------------------------------------------------------------------------
# Software's Installation
#--------------------------------------------------------------------------
RUN apk --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
--repository http://dl-3.alpinelinux.org/alpine/edge/main/ \
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update \
add bash \
shadow \
curl \
zlib-dev \
postgresql-dev \
libjpeg-turbo-dev \
libpng-dev \
freetype-dev \
openssl-dev \
libmcrypt-dev \
&& docker-php-ext-install mcrypt pdo_mysql pdo_pgsql \
&& docker-php-ext-configure gd \
--enable-gd-native-ttf \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
--with-freetype-dir=/usr/include/ \
&& docker-php-ext-install gd \
&& apk del --purge make g++ autoconf libtool && \
rm -rf /var/cache/apk/*
<<Insert Optional Software Here >>
#####################################
# COMPOSER:
#####################################
# Install composer and add its bin to the PATH.
RUN curl -s http://getcomposer.org/installer | php && \
echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc && \
mv composer.phar /usr/local/bin/composer
# Source the bash
RUN . ~/.bashrc
#--------------------------------------------------------------------------
# Final Touch
#--------------------------------------------------------------------------
ADD ./laravel.ini /usr/local/etc/php/conf.d
ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/
RUN usermod -u 1000 www-data
WORKDIR /var/www
CMD ["php-fpm"]
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
I converted an existing fpm dockerfile to the alpine distro earlier and it dropped the image size from 170mb down to 50mb. This is a naive first attempt and by no means is optimised but certainly is a step in the right direction, the only issue is my fpm image was forked from the laradock image a while back so is likely out of sync and I dont have enough time to bring it up to speed with your own. In theory you should be able to just the optional software section to the below:
The text was updated successfully, but these errors were encountered: