Sign inSign up

wunderman/php74_yarn

By wunderman

•Updated almost 5 years ago

Image
0

875

wunderman/php74_yarn repository overview

Dockerfile

# Base image for build
FROM php:7.4-cli

# Update packages
RUN apt update && apt upgrade -y

# Install PHP Extensions required by Symfony 5 (gd, zip)
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev \
    && docker-php-ext-configure gd --with-freetype --with-jpeg \
    && docker-php-ext-install -j$(nproc) gd
RUN apt-get install -y libzip-dev zip \
    && docker-php-ext-install zip

# Install Composer 2 to compile backend
RUN apt install -y wget unzip \
    && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
    && unlink composer-setup.php

# Install Node 16
RUN curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh \
    && bash nodesource_setup.sh && apt install nodejs \
    && unlink nodesource_setup.sh

# Install Yarn to compile frontend
RUN npm config set strict-ssl false \
    && npm i -g yarn

Tag summary

Content type

Image

Digest

Size

221.9 MB

Last updated

almost 5 years ago

docker pull wunderman/php74_yarn