forked from TeamRock/docker-apache2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 817 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
# Dockerfile for Apache2
#
# Details:
# - Apache 2.4
##
# Pull base image.
FROM ubuntu:20.04
# Maintainer
MAINTAINER TeamRock <devtech@teamrock.com>
# Install Apache2
RUN DEBIAN_FRONTEND=noninteractive apt update \
&& apt install -y curl apache2 \
&& rm -rf /var/lib/apt/lists/*
# Custom apache2 configuration
COPY conf.d/* /etc/apache2/conf-enabled/
COPY /etc/apache2/mods-available/cgid* /etc/apache2/mods-enabled/
# Configure Apache2
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
env APACHE_PID_FILE /var/run/apache2.pid
env APACHE_RUN_DIR /var/run/apache2
env APACHE_LOCK_DIR /var/lock/apache2
env APACHE_LOG_DIR /var/log/apache2
# Expose ourselves
EXPOSE 80
# Run!
ENTRYPOINT [ "/usr/sbin/apache2", "-DFOREGROUND" ]