add docker setup for hosting the repo

This commit is contained in:
2025-10-09 21:02:20 +02:00
parent 7480ed630d
commit 19aaa4aeb0
5 changed files with 57 additions and 22 deletions
+15
View File
@@ -0,0 +1,15 @@
# Use lightweight Nginx + Git
FROM nginx:alpine
# Install git and bash
RUN apk add --no-cache git bash
# Copy nginx config
COPY nginx.conf /etc/nginx/nginx.conf
# Copy update script
COPY update.sh /update.sh
RUN chmod +x /update.sh
# Start update loop + nginx
CMD ["/bin/bash", "-c", "/update.sh & nginx -g 'daemon off;'"]