Sign inSign up

708u/laravel-alpine

By 708u

•Updated about 6 years ago

Laravel7.*,6.* ready for image.

Image
0

10K+

Dockerfile
FROM php:7.4.7-fpm-alpine
LABEL maintainer=708-U

# Install packages and extensions depended on Laravel.
RUN apk update \
    && apk --update-cache --no-cache add \
    curl \
    libzip-dev \
    libpng-dev \
    autoconf \
    gcc \
    g++ \
    make \
    git \
    bash \
    icu-dev \
    oniguruma-dev \
    && rm -rf /var/cache/apk/* \
    && git clone https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis \
    # Install XDebug
    && pecl install xdebug-2.8.1 \
    && docker-php-ext-enable xdebug \
    # Install dependencies for laravel.
    # https://laravel.com/docs/6.x
    && docker-php-ext-install \
    bcmath \
    pdo_mysql \
    mbstring \
    intl \
    zip \
    opcache \
    redis \
    gd \
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
    && composer global require hirak/prestissimo