-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (66 loc) · 1.84 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
FROM php:8.0-apache
RUN a2enmod rewrite
# Setup the OS for PHP
RUN docker-php-source extract \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
libxml2-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libicu-dev \
libpq-dev \
libjpeg-dev \
zip \
libzip-dev \
unzip \
&& apt-get clean \
&& rm -rf /tmp/*
# Setup PHP extensions
RUN docker-php-ext-configure opcache \
&& docker-php-ext-configure calendar \
&& docker-php-ext-configure exif \
&& docker-php-ext-configure fileinfo \
&& docker-php-ext-configure gettext \
&& docker-php-ext-configure mysqli \
&& docker-php-ext-configure pdo \
&& docker-php-ext-configure pdo_mysql \
&& docker-php-ext-configure session \
&& docker-php-ext-configure ctype \
&& docker-php-ext-configure tokenizer \
&& docker-php-ext-configure simplexml \
&& docker-php-ext-configure dom \
&& docker-php-ext-configure zip \
&& docker-php-ext-configure xml \
&& docker-php-ext-configure intl \
&& docker-php-source delete \
&& docker-php-ext-install \
opcache \
calendar \
exif \
fileinfo \
gettext \
mysqli \
pdo \
pdo_mysql \
session \
ctype \
tokenizer \
simplexml \
dom \
zip \
xml \
intl
# Get composer
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer
# Manually set up the apache environment variables
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
# Update the default apache site with the config we created.
ADD conf/apache-config.conf /etc/apache2/sites-enabled/000-default.conf
ADD conf/php-dev.ini /usr/local/etc/php/php.ini