PHP Classes
elePHPant
Icontem

File: Dockerfile

Recommend this page to a friend!
  Classes of Joseluis Laso  >  Simple PHP Memory Database  >  Dockerfile  >  Download  
File: Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Memory Database
Manipulate databases stored in JSON format files
Author: By
Last change:
Date: 6 months ago
Size: 729 bytes
 

Contents

Class file image Download
FROM php:7.1

WORKDIR /var/project

COPY bin/ ./bin/
COPY src/ ./src/
COPY Tests/ ./Tests/
COPY composer.json ./composer.json
COPY phpunit.xml ./phpunit.xml
COPY .gitignore ./.gitignore

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive \
    apt-get install -yq --no-install-recommends \
        curl \
        git \
        nano \
        unzip \
        libicu-dev && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
    pecl install xdebug && \
    docker-php-ext-enable xdebug && \
    echo 'alias ll="ls -la"' >> ~/.bashrc && \
    composer install --no-interaction -o && \
    bin/phpunit