File tree Expand file tree Collapse file tree 1 file changed +75
-0
lines changed
Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments