forked from bylexus/docker-apache-php7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (31 loc) · 761 Bytes
/
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
FROM ubuntu:20.04
MAINTAINER GarretSidzaka <[email protected]>
VOLUME ["/var/www"]
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y \
apache2 \
php7.4 \
php7.4-mysql \
php-common \
php7.4-cli \
php7.4-json \
php7.4-common \
php7.4-opcache \
php7.4-xml \
php7.4-xsl \
php7.4-gd \
php7.4-zip \
php7.4-soap \
php7.4-opcache \
php7.4-sqlite3 \
php7.4-pgsql \
libapache2-mod-php7.4 \
composer
COPY apache_default /etc/apache2/sites-available/000-default.conf
COPY run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run
RUN a2enmod rewrite
EXPOSE 80
CMD ["/usr/local/bin/run"]