-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.docker-apache-php
44 lines (37 loc) · 1.15 KB
/
Dockerfile.docker-apache-php
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
FROM php:7.3-fpm
ENV DEBIAN_FRONTEND noninteractive
# Install packages
RUN apt-get update -qq && apt-get install -y \
locales -qq \
&& locale-gen en_AU \
&& locale-gen en_AU.UTF-8 \
&& dpkg-reconfigure locales \
&& locale-gen C.UTF-8 \
&& dpkg-reconfigure locales \
&& apt-get update && apt-get install -y \
gnupg \
software-properties-common \
build-essential \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& apt-get update && apt-get install -y \
supervisor \
wget \
curl \
zip \
unzip \
apache2
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
# Install Composer
RUN wget -O /tmp/composer.phar https://getcomposer.org/composer.phar \
&& cp /tmp/composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer
# Apache config
COPY apache2.conf /etc/apache2/apache2.conf
COPY site-config.conf /etc/apache2/sites-available/000-default.conf
# Supervisor config
COPY supervisor_conf.d/apache2.conf /etc/supervisor/conf.d/apache2.conf
# Install and update entrypoint script
COPY start.sh /
ENTRYPOINT ["/start.sh"]