-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
38 lines (32 loc) · 1.07 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
FROM php:7.4-apache
# Copy the rest of the application files into the image
COPY . /var/www/html/
# Enable necessary Apache modules
RUN a2enmod rewrite
RUN a2enmod headers
RUN a2enmod dir
RUN apt-get update
RUN apt-get install -y zlib1g-dev \
libpq-dev \
git \
libicu-dev \
libxml2-dev \
libcurl4-openssl-dev \
pkg-config \
libssl-dev \
libzip-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
curl \
net-tools \
iputils-ping \
vim \
nano
# Install the MySQL and cURL extensions
RUN docker-php-ext-install mysqli curl
# Enable the MySQL extension
RUN docker-php-ext-enable mysqli
RUN docker-php-ext-install pdo pdo_mysql
# Restart Apache
RUN /etc/init.d/apache2 restart