diff options
| author | Fuwn <[email protected]> | 2026-01-03 00:27:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-03 00:27:05 -0800 |
| commit | 4c50005038d79173c6577deda73f8ca49f74fa19 (patch) | |
| tree | 951872d59da8d32c72b619a232ec88f3d164e5df /Dockerfile | |
| download | cgit-docker-main.tar.xz cgit-docker-main.zip | |
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7c4c8f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:bookworm-slim + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + git \ + ca-certificates \ + cgit \ + highlight \ + lighttpd \ + && rm -rf /var/lib/apt/lists/* +RUN mkdir -p /var/www/html /git + +COPY cgitrc /etc/cgitrc +COPY custom.css /var/www/html/custom.css +COPY lighttpd.conf /etc/lighttpd/lighttpd.conf + +RUN chown -R www-data:www-data /var/www && \ + chmod -R 755 /var/www + +EXPOSE 80 + +CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |