forked from ArtiomL/adct
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 831 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (26 loc) · 831 Bytes
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
# adct - Dockerfile
# https://github.com/ArtiomL/adct
# Artiom Lichtenstein
# v1.0.4, 28/11/2017
FROM debian:stable-slim
LABEL maintainer="Artiom Lichtenstein" version="1.0.4"
# Core dependencies
RUN apt-get update && \
apt-get install -y apache2 php7.0 && \
apt-get autoclean -y && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# adct
COPY / /var/www/adct/
RUN cp /var/www/adct/etc/adct*.conf /etc/apache2/sites-available/
RUN cat /var/www/adct/etc/apache2.conf | tee -a /etc/apache2/apache2.conf
RUN htpasswd -cb /etc/apache2/.htpasswd user user
RUN a2dissite 000-default.conf
RUN a2enmod ssl headers
RUN sed -i '/Listen 80/a Listen 81' /etc/apache2/ports.conf
RUN a2ensite adct.conf adct-ssl.conf
# Expose ports
EXPOSE 80 81 443
# Run
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]