summaryrefslogtreecommitdiff
path: root/web/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'web/Dockerfile')
-rw-r--r--web/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/Dockerfile b/web/Dockerfile
new file mode 100644
index 0000000..c99c212
--- /dev/null
+++ b/web/Dockerfile
@@ -0,0 +1,16 @@
+# cgit + nginx + git-http-backend (браузинг + clone/push по HTTP)
+FROM debian:bookworm-slim
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ nginx cgit fcgiwrap spawn-fcgi git ca-certificates \
+ && rm -rf /var/lib/apt/lists/*
+COPY nginx.conf /etc/nginx/nginx.conf
+COPY cgitrc /etc/cgitrc
+COPY dark.css /usr/share/cgit/dark.css
+COPY MonaspaceKrypton.woff2 /usr/share/cgit/MonaspaceKrypton.woff2
+COPY pg-logo.png /usr/share/cgit/pg-logo.png
+COPY pg-favicon.png /usr/share/cgit/pg-favicon.png
+COPY entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+EXPOSE 80
+VOLUME /repos
+ENTRYPOINT ["/entrypoint.sh"]