forked from rmoorman/docker-svn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (42 loc) · 1.04 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
#
# SVN Docker container
#
# Version 0.1
FROM debian:8
MAINTAINER Joseph Lutz <[email protected]>
# install the required packages and cleanup the install
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
apache2 \
enscript \
libapache2-svn \
php5-common \
subversion \
websvn && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# copy over files
COPY \
config/000-default-ssl.conf \
config/000-default.conf \
config/000-svn.conf \
config/000-websvn.conf \
/etc/apache2/sites-available/
COPY config/ldap.conf \
/etc/apache2/mods-available/
COPY \
config/config.php \
/etc/websvn/
COPY ./docker-entrypoint.sh \
./configure.sh \
/
# run the configuration script
RUN ["/bin/bash", "/configure.sh"]
# specify which network ports will be used
EXPOSE 80 443
# specify the volumes directly related to this image
VOLUME ["/var/lib/svn"]
# start the entrypoint script
WORKDIR /var/lib/svn
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["svn"]