-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
92 lines (76 loc) · 2.34 KB
/
Dockerfile
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
################################
# #
# Ubuntu - PHP 7.3 CLI+FPM #
# #
################################
FROM ubuntu:xenial
MAINTAINER Aseev Dmitriy <[email protected]>
LABEL Vendor="dmiseev"
LABEL Description="PHP-FPM v7.3"
LABEL Version="1.0.0"
ENV LYBERTEAM_TIME_ZONE Europe/Kiev
#RUN apt-get install -y python-software-properties
RUN apt-get update -yqq \
&& apt-get install -yqq \
ca-certificates \
git \
gcc \
make \
wget \
mc \
curl \
supervisor \
sendmail
RUN DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-software-properties
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
RUN DEBIAN_FRONTEND=noninteractive LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
## Install php7.3 extension
RUN apt-get update -yqq \
&& apt-get install -yqq \
php7.3-pgsql \
php7.3-mysql \
php7.3-opcache \
php7.3-common \
php7.3-mbstring \
php7.3-soap \
php7.3-cli \
php7.3-intl \
php7.3-json \
php7.3-xsl \
php7.3-imap \
php7.3-ldap \
php7.3-curl \
php7.3-gd \
php7.3-dev \
php7.3-fpm \
php7.3-bcmath \
php7.3-imagick \
php7.3-zip \
php7.3-zmq \
php7.3-apcu \
&& apt-get install pkg-config \
&& pecl install mongodb \
&& echo "extension=mongodb.so" > /etc/php/7.3/cli/conf.d/ext-mongodb.ini \
&& echo "extension=mongodb.so" > /etc/php/7.3/fpm/conf.d/ext-mongodb.ini \
&& apt-get install -y -q --no-install-recommends \
ssmtp
# Add default timezone
RUN echo $LYBERTEAM_TIME_ZONE > /etc/timezone
RUN echo "date.timezone=$LYBERTEAM_TIME_ZONE" > /etc/php/7.3/cli/conf.d/timezone.ini
## Install composer globally
RUN echo "Install composer globally"
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
# Copy our config files for php7.3 fpm and php7.3 cli
COPY php-conf/php.ini /etc/php/7.3/cli/php.ini
COPY php-conf/php-fpm.ini /etc/php/7.3/fpm/php.ini
COPY php-conf/php-fpm.conf /etc/php/7.3/fpm/php-fpm.conf
COPY php-conf/www.conf /etc/php/7.3/fpm/pool.d/www.conf
RUN usermod -aG www-data www-data
# Reconfigure system time
RUN dpkg-reconfigure -f noninteractive tzdata
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]
WORKDIR /var/www/dmiseev
EXPOSE 9000