forked from laminas/laminas-mvc-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
78 lines (59 loc) · 1.91 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
FROM php:7.3-apache
LABEL maintainer="getlaminas.org" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.name="Laminas MVC Skeleton" \
org.label-schema.url="https://docs.getlaminas.org/mvc/" \
org.label-schema.vcs-url="https://github.com/laminas/laminas-mvc-skeleton"
## Update package information
RUN apt-get update
## Configure Apache
RUN a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
&& mv /var/www/html /var/www/public
## Install Composer
RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
###
## PHP Extensisons
###
## Install zip libraries and extension
RUN apt-get install --yes git zlib1g-dev libzip-dev \
&& docker-php-ext-install zip
## Install intl library and extension
RUN apt-get install --yes libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
###
## Optional PHP extensions
###
## mbstring for i18n string support
# RUN docker-php-ext-install mbstring
###
## Some laminas/laminas-db supported PDO extensions
###
## MySQL PDO support
# RUN docker-php-ext-install pdo_mysql
## PostgreSQL PDO support
# RUN apt-get install --yes libpq-dev \
# && docker-php-ext-install pdo_pgsql
###
## laminas/laminas-cache supported extensions
###
## APCU
# RUN pecl install apcu \
# && docker-php-ext-enable apcu
## Memcached
# RUN apt-get install --yes libmemcached-dev \
# && pecl install memcached \
# && docker-php-ext-enable memcached
## MongoDB
# RUN pecl install mongodb \
# && docker-php-ext-enable mongodb
## Redis support. igbinary and libzstd-dev are only needed based on
## redis pecl options
# RUN pecl install igbinary \
# && docker-php-ext-enable igbinary \
# && apt-get install --yes libzstd-dev \
# && pecl install redis \
# && docker-php-ext-enable redis
WORKDIR /var/www