Created
May 10, 2018 04:11
-
-
Save kresnasatya/51553ec5abba03b4d361b4b3c5b6ab39 to your computer and use it in GitHub Desktop.
Docker file for laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the base image for subsequent instructions | |
FROM php:latest | |
# Update packages | |
RUN apt-get update | |
# Install PHP and composer dependencies | |
RUN apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev | |
# Clear out the local repository of retrieved package files | |
RUN apt-get clean | |
# Install needed extensions | |
# Here you can install any other extension that you need during the test and deployment process | |
RUN docker-php-ext-install pdo_mysql zip | |
# Install Composer | |
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
# Packagist mirror | |
RUN composer config -g repos.packagist composer https://packagist.phpindonesia.id | |
# Install Laravel Envoy | |
RUN composer global require "laravel/envoy=~1.0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment