-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (34 loc) · 1.04 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
FROM php:7.4-apache
RUN mkdir /app && \
chown www-data:www-data /app
WORKDIR /app
ADD site.conf /etc/apache2/sites-available
ADD php.ini-development /usr/local/etc/php/php.ini
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
zlib1g-dev \
libxml2-dev \
libzip-dev \
libonig-dev \
graphviz \
libbz2-dev && \
docker-php-source extract && \
docker-php-ext-install bcmath && \
docker-php-ext-install ctype && \
docker-php-ext-install json && \
docker-php-ext-install mbstring && \
docker-php-ext-install mysqli && \
docker-php-ext-install zip && \
docker-php-ext-install bz2 && \
docker-php-ext-install tokenizer && \
docker-php-ext-install xml && \
docker-php-ext-install soap && \
docker-php-ext-install simplexml && \
docker-php-ext-install dom && \
a2enmod rewrite && \
a2ensite site && \
a2dissite 000-default && \
rm -rf /var/lib/apt/lists/*