diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..641fd1b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine/latest + +RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repositories + +# install required packages +#RUN apk add --no-cache gcc libc-dev libffi-dev openssl openssl-dev python3-dev +RUN apk add --no-cache apache2 apache2-utils apache2-webdav mod_dav_svn subversion + +ADD dav_svn.conf /etc/apache2/conf.d/dav_svn.conf \ No newline at end of file diff --git a/dav_svn.conf b/dav_svn.conf new file mode 100644 index 0000000..cc3a819 --- /dev/null +++ b/dav_svn.conf @@ -0,0 +1,19 @@ +LoadModule dav_svn_module /usr/lib/apache2/mod_dav_svn.so +LoadModule authz_svn_module /usr/lib/apache2/mod_authz_svn.so + + + + DAV svn + SVNParentPath /data + SVNListParentPath On + + SVNAutoversioning on + ModMimeUsePathInfo on + + AuthType Basic + AuthName "svn" + AuthUserFile /data/.htpasswd + AuthzSVNAccessFile /data/authz + Require valid-user + + \ No newline at end of file