Sign inSign up

spintek/php74

By spintek

•Updated about 5 years ago

PHP 7.4 FPM with some extensions + nodejs, yarn and composer preinstalled

Image
0

6.0K

spintek/php74 repository overview

FROM phpdockerio/php74-fpm:latest

# Install openssh-agent
RUN which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) \
    && eval $(ssh-agent -s)

# Install apt-utils
RUN apt-get update \ 
    && apt-get -y --no-install-recommends install apt-utils

# Install PHP extensions
RUN apt-get update \ 
    && apt-get -y --no-install-recommends install php7.4-pgsql php7.4-mbstring php7.4-gd php7.4-soap php7.4-simplexml php7.4-amqp php7.4-xdebug \
    && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# Intall make, rsync etc
RUN apt-get update \
    && apt-get -y install build-essential rsync

# Install git
RUN apt-get update \
    && apt-get -y install git \
    && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# Install nodejs and yarn
RUN apt-get update \
    && apt-get -y install software-properties-common \
    && curl -sL https://deb.nodesource.com/setup_12.x | /bin/sh - \
    && apt-get -y install nodejs \
    && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
    && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
    && apt-get update \
    && apt-get -y install yarn

# Install composer
RUN curl -sS https://getcomposer.org/installer | php \
    && mv composer.phar  /usr/local/bin/composer \
    && chmod +x /usr/local/bin/composer

Tag summary

Content type

Image

Digest

Size

258.2 MB

Last updated

about 5 years ago

docker pull spintek/php74