aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2020-09-13 12:55:13 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2020-09-13 12:55:13 +0200
commit7477046b1bd2060885ed9d603e704c0381c6e2ab (patch)
tree6f1b61d9970a038b86965e4f5160278ba436bb71
parentff75e72272672b4466cb869f90c89d2c6f706469 (diff)
downloadcgit-docker-run-as-user.tar.gz
cgit-docker-run-as-user.tar.bz2
cgit-docker-run-as-user.zip
make lighttpd run as user with id 3333run-as-user
-rw-r--r--Dockerfile1
-rw-r--r--README.md10
2 files changed, 6 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index d0ed604..46a73d3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,7 @@ MAINTAINER Diederick de Vries <diederick@diederickdevries.net>
3RUN pacman --noconfirm -Syu 3RUN pacman --noconfirm -Syu
4RUN pacman --noconfirm -S cgit lighttpd 4RUN pacman --noconfirm -S cgit lighttpd
5RUN pacman --noconfirm -S python-pygments 5RUN pacman --noconfirm -S python-pygments
6RUN usermod -u 3333 http
6RUN mkdir /conf 7RUN mkdir /conf
7COPY cgitrc /etc/ 8COPY cgitrc /etc/
8COPY lighttpd.conf /etc/lighttpd/ 9COPY lighttpd.conf /etc/lighttpd/
diff --git a/README.md b/README.md
index d503f60..21a305b 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
1# cgit-docker 1# cgit-docker
2## Docker image exposing git repos using cgit 2## Docker image exposing git repos using cgit
3 3
4Cgit-docker publishes your git repositories through Cgit, a hyperfast git frontend written in c. The image is based on 4Cgit-docker publishes your git repositories through cgit, a hyperfast git frontend written in c
5archlinux and uses lighttpd to expose the front-end. 5(https://git.zx2c4.com/cgit/). The image is based on archlinux (https://hub.docker.com/_/archlinux) and uses lighttpd to expose the front-end.
6 6
7Sample run command: 7Sample run command:
8 8
@@ -13,6 +13,6 @@ Sample run command:
13 --restart unless-stopped cgit 13 --restart unless-stopped cgit
14 14
15Planned updates: 15Planned updates:
16- site name and tagline in environment vars 16+ site name and tagline in environment vars
17- Logo en css in volume 17+ Logo en css in /conf
18- Remove unneeded packages from Arch base image 18+ Remove any unneeded packages from Arch base image