generated from pbraiders/vanilla-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1.15 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
FROM ubuntu:latest
LABEL Description="PBRaiders pomponne"
LABEL Vendor="Olivier Jullien"
LABEL License="MIT"
LABEL Version=pomponne
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive;apt-get install -y tzdata apt-utils;dpkg-reconfigure --frontend noninteractive tzdata \
&& apt-get -y install apache2 php7.4 php7.4-bz2 php7.4-fpm php7.4-gd php7.4-intl php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip mariadb-server \
&& apt-get -y clean && apt-get -y autoremove && rm -rf /var/cache/apt/* \
&& sync
COPY php /etc/php/7.4/mods-available
COPY mariadb /etc/mysql/mariadb.conf.d
COPY apache2/conf-available /etc/apache2/conf-available
COPY apache2/sites-available /etc/apache2/sites-available
COPY public_html /var/www/html
COPY script /usr/local/bin
RUN sync && chmod +x /usr/local/bin/pbr-start \
&& phpenmod zzz-prod \
&& a2enmod expires headers include proxy proxy_fcgi rewrite\
&& a2disconf serve-cgi-bin other-vhosts-access-log \
&& a2enconf php7.4-fpm zzz-* \
&& a2dissite 000-default \
&& a2ensite loader \
&& chown -R www-data:www-data /var/www && sync
WORKDIR /var/www/html
EXPOSE 80 3306
CMD ["pbr-start"]