summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
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"]