Skip to content

Commit d66e9b2

Browse files
Merge pull request #20 from monkeycorp/feature/php72
add support to php72
2 parents 5c52c0e + b5bc0b9 commit d66e9b2

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

Dockerfile-72

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#
2+
#--------------------------------------------------------------------------
3+
# Image Setup
4+
#--------------------------------------------------------------------------
5+
#
6+
7+
FROM phusion/baseimage:latest
8+
9+
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
10+
11+
RUN DEBIAN_FRONTEND=noninteractive
12+
RUN locale-gen en_US.UTF-8
13+
14+
ENV LANGUAGE=en_US.UTF-8
15+
ENV LC_ALL=en_US.UTF-8
16+
ENV LC_CTYPE=en_US.UTF-8
17+
ENV LANG=en_US.UTF-8
18+
ENV TERM xterm
19+
20+
# Add the "PHP 7" ppa
21+
RUN apt-get install -y software-properties-common && \
22+
add-apt-repository -y ppa:ondrej/php
23+
24+
#
25+
#--------------------------------------------------------------------------
26+
# Software's Installation
27+
#--------------------------------------------------------------------------
28+
#
29+
30+
# Install "PHP Extentions", "libraries", "Software's"
31+
RUN apt-get update && \
32+
apt-get install -y --allow-downgrades --allow-remove-essential \
33+
--allow-change-held-packages \
34+
php7.2-cli \
35+
php7.2-common \
36+
php7.2-curl \
37+
php7.2-intl \
38+
php7.2-json \
39+
php7.2-xml \
40+
php7.2-mbstring \
41+
php7.2-mysql \
42+
php7.2-pgsql \
43+
php7.2-sqlite \
44+
php7.2-sqlite3 \
45+
php7.2-zip \
46+
php7.2-bcmath \
47+
php7.2-memcached \
48+
php7.2-gd \
49+
php7.2-dev \
50+
pkg-config \
51+
libcurl4-openssl-dev \
52+
libedit-dev \
53+
libssl-dev \
54+
libxml2-dev \
55+
xz-utils \
56+
libsqlite3-dev \
57+
sqlite3 \
58+
git \
59+
curl \
60+
vim \
61+
nano \
62+
postgresql-client \
63+
&& apt-get clean
64+
65+
#####################################
66+
# Composer:
67+
#####################################
68+
69+
# Install composer and add its bin to the PATH.
70+
RUN curl -s http://getcomposer.org/installer | php && \
71+
echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc && \
72+
mv composer.phar /usr/local/bin/composer
73+
74+
# Source the bash
75+
RUN . ~/.bashrc

0 commit comments

Comments
 (0)