aboutsummaryrefslogtreecommitdiffstats
path: root/gitolite-cgit/Dockerfile
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-08 10:21:21 -0500
committerJesús <heckyel@hyperbola.info>2021-04-08 10:21:21 -0500
commitf98d998151ebaeb4e563f1a179610d600ad6d757 (patch)
treeb42b4dae5fd817d5beba894bb158431daed31c0e /gitolite-cgit/Dockerfile
downloadgitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.tar.lz
gitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.tar.xz
gitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.zip
initial commit
Diffstat (limited to 'gitolite-cgit/Dockerfile')
-rw-r--r--gitolite-cgit/Dockerfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/gitolite-cgit/Dockerfile b/gitolite-cgit/Dockerfile
new file mode 100644
index 0000000..3dd2d87
--- /dev/null
+++ b/gitolite-cgit/Dockerfile
@@ -0,0 +1,33 @@
+FROM alpine:latest
+LABEL MAINTAINER="heckyel@riseup.net"
+
+# Install needed packages
+RUN set -xe \
+ && apk add --no-cache --purge -uU \
+ # Install gitolite
+ gitolite git openssh \
+ # install git-daemon
+ git-daemon \
+ # add nginx and cgit
+ cgit nginx fcgiwrap spawn-fcgi \
+ # python 3 pkg for highlight, about page
+ py3-markdown py3-pygments \
+ # Create nginx folder
+ && mkdir -p /run/nginx \
+ # Clean up
+ && rm -rf /var/cache/apk/* \
+ && rm -rf /tmp/*
+
+# Volume to store all ssh host key
+VOLUME [ "/etc/ssh" ]
+
+# Volume to store Gitolite data, used for Gitolite setup
+VOLUME [ "/var/lib/git" ]
+
+EXPOSE 22 80 9418
+WORKDIR /var/lib/git
+
+COPY cgit.css /usr/share/webapps/cgit/cgit.css
+COPY entrypoint.sh /
+RUN chmod u+x /entrypoint.sh
+ENTRYPOINT ["/entrypoint.sh"]