1 |
b3f82c14
|
Adam Mištera
|
# Set the base image for subsequent instructions
|
2 |
|
|
FROM php:7.1
|
3 |
|
|
|
4 |
|
|
# Update packages
|
5 |
|
|
RUN apt-get update
|
6 |
|
|
|
7 |
|
|
# Install PHP and composer dependencies
|
8 |
|
|
RUN apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev
|
9 |
|
|
|
10 |
|
|
# Clear out the local repository of retrieved package files
|
11 |
|
|
RUN apt-get clean
|
12 |
|
|
|
13 |
|
|
# Install needed extensions
|
14 |
|
|
# Here you can install any other extension that you need during the test and deployment process
|
15 |
|
|
RUN docker-php-ext-install mcrypt pdo_mysql zip
|
16 |
|
|
|
17 |
|
|
# Install Composer
|
18 |
|
|
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
19 |
|
|
|
20 |
|
|
# Install Laravel Envoy
|
21 |
|
|
RUN composer global require "laravel/envoy=~1.0"
|