-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
84 lines (64 loc) · 2.15 KB
/
Dockerfile
File metadata and controls
84 lines (64 loc) · 2.15 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
FROM php:8.0.2-apache
LABEL maintainer="thehideout" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.name="RSSFeed Application"
## 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
## Install Git XDebug and set Config
RUN apt-get install -y vim git \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& echo 'xdebug.mode=debug' >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo 'xdebug.client_host=host.docker.internal' >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo ' xdebug.client_port=9000' >> /usr/local/etc/php/conf.d/xdebug.ini \
###
## 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