summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 729fcd900299a978d357f480be25c1c9c2d1645a (plain)
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
FROM arm32v7/fedora:25
MAINTAINER http://fedoraproject.org/wiki/Cloud


RUN dnf -y update && dnf clean all
RUN dnf -y install yum-utils && dnf clean all


#
# PHP stack provided by Remi Repository <https://rpms.remirepo.net/>
# Table of versions of PHP for Fedora:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |  fc28  |  7.3.0   |  7.2.9   |
# |  fc27  |  7.1.21  |
# |  fc25  |  7.0.31  |
# |  fc24  |  5.6.33  |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
RUN rpm -ivh https://rpms.remirepo.net/fedora/25/remi/x86_64/remi-release-25-4.fc25.remi.noarch.rpm &&  \
    yum-config-manager --enable remi


#
# Package list for general webapps such as dotclear, wordpress, nextcloud and
# many others in production use case.
#
RUN dnf -y install php-fpm          \
                   php-php-gettext  \
                   php-mysqlnd      \
                   php-pdo          \
                   php-imap         \
                   php-simplepie    \
                   php-mbstring     \
                   php-pear         \
                   php-mcrypt       \
                   php-domxml-php4-php5  \
                   php-cli          \
                   php-snmp         \
                   php-ldap         \
                   php-pgsql        \
                   php-process      \
                   php-IDNA_Convert  \
                   php-xml          \
                   php-common       \
                   php-gd           \
                   php-pecl-memcache    \
                   php-pecl-memcached   \
                   php-pecl-zip     \
                   php-pecl-redis   \
&& dnf clean all
# Print php modules installed (useless with cache of docker build)
RUN php -m

EXPOSE 9000

# Simple startup script to avoid some issues observed with container restart
ADD run-php-fpm.sh /run-php-fpm.sh
RUN chmod -v +x /run-php-fpm.sh

VOLUME ["/etc/php-fpm.d", "/run/php-fpm", "/var/log/php-fpm", "/var/www/html", "/var/run/memcached"]
CMD ["/run-php-fpm.sh"]