-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 922 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 922 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
FROM httpd:2.4@sha256:331548c5249bdeced0f048bc2fb8c6b6427d2ec6508bed9c1fec6c57d0b27a60
RUN apt-get update && apt-get install -y \
git \
apache2-utils \
python3 \
openssl \
&& rm -rf /var/lib/apt/lists/*
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
COPY git-capture-wrapper.py /usr/local/bin/git-capture-wrapper.py
COPY generate-cert.sh /usr/local/bin/generate-cert.sh
RUN chmod +x /usr/local/bin/generate-cert.sh \
&& /usr/local/bin/generate-cert.sh
RUN htpasswd -cb /usr/local/apache2/conf/.htpasswd admin admin123 \
&& htpasswd -b /usr/local/apache2/conf/.htpasswd testuser user123
COPY init-repos.sh /usr/local/bin/init-repos.sh
RUN chmod +x /usr/local/bin/init-repos.sh \
&& chmod +x /usr/local/bin/git-capture-wrapper.py \
&& mkdir -p /var/git-captures \
&& chown www-data:www-data /var/git-captures \
&& /usr/local/bin/init-repos.sh
EXPOSE 8443
CMD ["httpd-foreground"]