-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·51 lines (44 loc) · 1.17 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
39
40
41
42
43
44
45
46
47
48
49
50
51
# docker build -t wsams/httpd --rm=true --pull .
FROM ubuntu:22.04
ARG SSL_DIR
COPY httpd-foreground /usr/bin/
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get -y install \
apache2 \
apt-utils \
curl \
fail2ban \
imagemagick \
git \
php \
php-curl \
php-gd \
php-imagick \
php-imap \
php-json \
php-mongodb \
php-mysql \
php-sqlite3 \
php-xml \
php-xsl \
php-zip \
unzip \
vim \
zip && \
a2enmod headers && \
a2enmod http2 && \
a2enmod proxy && \
a2enmod proxy_balancer && \
a2enmod proxy_http && \
a2enmod proxy_wstunnel && \
a2enmod rewrite && \
a2enmod ssl && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
chmod 700 /usr/bin/httpd-foreground && \
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -subj "/C=US/ST=Xaero/L=Pepper/O=Zoopaz/OU=Zoopaz/CN=localhost" -keyout /apache-key.pem -out /apache-cert.pem
COPY custom.conf /etc/apache2/sites-available/000-default.conf
EXPOSE 80
CMD ["httpd-foreground"]