forked from iconoeugen/docker-gitweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 761 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 761 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
FROM centos:7
MAINTAINER Horatiu Eugen Vlad "horatiu@vlad.eu"
ENV GIT_PROJECT_NAME="dummy" \
GIT_DESCRIPTION="Dummy repository" \
GIT_CATEGORY="" \
GIT_OWNER="Owner"
RUN yum -y install httpd git gitweb\
&& yum clean all
RUN sed -e "s/Listen 80.*/Listen 8080/" -i /etc/httpd/conf/httpd.conf \
&& mkdir -p /var/lib/git \
&& chown apache:root /var/lib/git \
&& chmod ug+rwx /var/lib/git \
&& chown apache:root /var/log/httpd \
&& chmod ug+rwx /var/log/httpd \
&& chown apache:root /run/httpd \
&& chmod ug+rwx /run/httpd
COPY git.conf /etc/httpd/conf.d/git.conf
COPY entrypoint.sh /entrypoint.sh
RUN chown apache /entrypoint.sh \
&& chmod a+x /entrypoint.sh
USER apache
EXPOSE 8080
CMD [ "/entrypoint.sh" ]