-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
123 lines (101 loc) · 3.7 KB
/
Dockerfile
File metadata and controls
123 lines (101 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
FROM php:7.4-apache
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
ARG DEBIAN_FRONTEND=noninteractive
ARG LC_ALL=C.UTF-8
ARG TERM=xterm
RUN apt-get update
RUN apt-get install --yes --no-install-recommends apt-utils
RUN apt-get install --yes --no-install-recommends apt-transport-https
RUN apt-get install --yes --no-install-recommends software-properties-common
RUN apt-get install --yes iputils-ping
RUN apt-get install --yes curl
RUN apt-get install --yes unzip
RUN apt-get install --yes zip
RUN apt-get install --yes libbz2-dev
RUN apt-get install --yes libc-client-dev
RUN apt-get install --yes libedit-dev
RUN apt-get install --yes libenchant-dev
RUN apt-get install --yes libgmp-dev
RUN apt-get install --yes libkrb5-dev
RUN apt-get install --yes libldap2-dev
RUN apt-get install --yes libmagickwand-dev
RUN apt-get install --yes libmemcached-dev
RUN apt-get install --yes libmcrypt-dev
RUN apt-get install --yes libpng-dev
RUN apt-get install --yes libpq-dev
RUN apt-get install --yes libpspell-dev
RUN apt-get install --yes librecode0
RUN apt-get install --yes librecode-dev
RUN apt-get install --yes libsqlite3-dev
RUN apt-get install --yes libssl-dev
RUN apt-get install --yes libtidy-dev
RUN apt-get install --yes libxml2-dev
RUN apt-get install --yes libzip-dev
RUN apt-get install --yes unixodbc-dev
RUN apt-get install --yes zlib1g-dev
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install bz2
RUN docker-php-ext-install dba
RUN docker-php-ext-install enchant
RUN docker-php-ext-install gd
RUN docker-php-ext-install gmp
RUN docker-php-ext-install intl
RUN docker-php-ext-install ldap
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install opcache
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install pdo_pgsql
RUN docker-php-ext-install pgsql
RUN docker-php-ext-install pspell
RUN docker-php-ext-install soap
RUN docker-php-ext-install tidy
RUN docker-php-ext-install xmlrpc
RUN docker-php-ext-install zip
## imap module setting up and installation.
RUN set -x \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install imap
## odbc module setting up and installation.
RUN set -x \
&& docker-php-source extract \
&& cd /usr/src/php/ext/odbc \
&& phpize \
&& sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure \
&& ./configure --with-unixODBC=shared,/usr \
&& docker-php-ext-install odbc \
&& docker-php-source delete
RUN pecl install apcu
RUN pecl install imagick
RUN pecl install mcrypt
RUN pecl install memcached
RUN pecl install redis
RUN docker-php-ext-enable apcu
RUN docker-php-ext-enable imagick
RUN docker-php-ext-enable memcached
RUN docker-php-ext-enable mcrypt
RUN docker-php-ext-enable redis
## Composer installation.
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
## Node.js installation.
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install --yes nodejs
## Yarn installation.
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get install --yes yarn
## Requiring common PHP Packages.
RUN composer global require hirak/prestissimo
RUN composer global require phpunit/phpunit
RUN composer global require phpunit/php-token-stream
RUN apt-get clean -y
RUN apt-get autoclean -y
RUN apt-get autoremove -y
RUN a2enmod rewrite
COPY conf/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY conf/apache/000-default.conf /etc/apache2/sites-enable/000-default.conf
COPY conf/config /config
COPY conf/run.sh /run.sh
RUN chmod 755 /run.sh
WORKDIR /var/www/html
EXPOSE 80 80
CMD ["php"]