-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from monkeycorp/feature/php72
add support to php72
- Loading branch information
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# | ||
#-------------------------------------------------------------------------- | ||
# Image Setup | ||
#-------------------------------------------------------------------------- | ||
# | ||
|
||
FROM phusion/baseimage:latest | ||
|
||
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me> | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive | ||
RUN locale-gen en_US.UTF-8 | ||
|
||
ENV LANGUAGE=en_US.UTF-8 | ||
ENV LC_ALL=en_US.UTF-8 | ||
ENV LC_CTYPE=en_US.UTF-8 | ||
ENV LANG=en_US.UTF-8 | ||
ENV TERM xterm | ||
|
||
# Add the "PHP 7" ppa | ||
RUN apt-get install -y software-properties-common && \ | ||
add-apt-repository -y ppa:ondrej/php | ||
|
||
# | ||
#-------------------------------------------------------------------------- | ||
# Software's Installation | ||
#-------------------------------------------------------------------------- | ||
# | ||
|
||
# Install "PHP Extentions", "libraries", "Software's" | ||
RUN apt-get update && \ | ||
apt-get install -y --allow-downgrades --allow-remove-essential \ | ||
--allow-change-held-packages \ | ||
php7.2-cli \ | ||
php7.2-common \ | ||
php7.2-curl \ | ||
php7.2-intl \ | ||
php7.2-json \ | ||
php7.2-xml \ | ||
php7.2-mbstring \ | ||
php7.2-mysql \ | ||
php7.2-pgsql \ | ||
php7.2-sqlite \ | ||
php7.2-sqlite3 \ | ||
php7.2-zip \ | ||
php7.2-bcmath \ | ||
php7.2-memcached \ | ||
php7.2-gd \ | ||
php7.2-dev \ | ||
pkg-config \ | ||
libcurl4-openssl-dev \ | ||
libedit-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
xz-utils \ | ||
libsqlite3-dev \ | ||
sqlite3 \ | ||
git \ | ||
curl \ | ||
vim \ | ||
nano \ | ||
postgresql-client \ | ||
&& apt-get clean | ||
|
||
##################################### | ||
# Composer: | ||
##################################### | ||
|
||
# Install composer and add its bin to the PATH. | ||
RUN curl -s http://getcomposer.org/installer | php && \ | ||
echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc && \ | ||
mv composer.phar /usr/local/bin/composer | ||
|
||
# Source the bash | ||
RUN . ~/.bashrc |