This repository was archived by the owner on Apr 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathDockerfile
More file actions
72 lines (64 loc) · 1.94 KB
/
Dockerfile
File metadata and controls
72 lines (64 loc) · 1.94 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
FROM amazeeio/centos:7
# Install required repos, update, and then install PHP-FPM
RUN yum install -y epel-release \
http://rpms.remirepo.net/enterprise/remi-release-7.rpm \
yum-utils && \
yum-config-manager --enable remi-php74 && \
yum update -y && \
yum install -y \
php-bcmath \
php-cli \
php-fpm \
php-mysqlnd \
php-xml \
php-gd \
php-mcrypt \
php-ldap \
php-imap \
php-soap \
php-tidy \
php-mbstring \
php-opcache \
php-pcntl \
php-pdo \
php-zip \
php-pecl-apcu \
php-pecl-apcu-bc \
php-pecl-geoip \
php-pecl-igbinary \
php-pecl-imagick \
php-pecl-redis \
php-pecl-xdebug \
mariadb \
git \
patch \
openssl \
unzip \
wget && \
yum --enablerepo=epel install -y fcgi && \
yum clean all
# Install Composer
ENV COMPOSER_VERSION 1.10.20
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=${COMPOSER_VERSION} && \
chmod +x /usr/local/bin/composer && \
composer global require "hirak/prestissimo:^0.3" && \
composer global require consolidation/cgr && \
composer --global config process-timeout 2000 && \
export PATH="$HOME/.composer/vendor/bin:$PATH" && \
cgr drush/drush
COPY docker-entrypoint /usr/local/bin/
COPY conf/php-fpm.conf conf/php.ini /etc/
COPY conf/www.conf /etc/php-fpm.d/www.conf
RUN mkdir -p /var/www && \
mkdir -p /run/php-fpm && \
fix-permissions /etc/php.ini && \
fix-permissions /etc/php-fpm.conf && \
fix-permissions /etc/php-fpm.d/ && \
fix-permissions /run/php-fpm && \
fix-permissions /var/lib/php/session/ && \
chmod +x /usr/local/bin/docker-entrypoint
WORKDIR /var/www
EXPOSE 9000
ENTRYPOINT ["docker-entrypoint"]
# Run PHP-FPM on container start.
CMD ["/usr/sbin/php-fpm", "-F", "-R"]