eindelijk weer eens een push

This commit is contained in:
allard
2026-05-31 16:07:30 +02:00
parent 01cff8e165
commit ff21c258e0
2747 changed files with 302316 additions and 131101 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM debian:bookworm-slim
# Minimal runtime dependencies
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
# Copy the compiled binary (already includes embedded Web UI)
COPY node-balancer /usr/local/bin/node-balancer
RUN chmod +x /usr/local/bin/node-balancer
# Web UI files (NEW)
COPY web /web
# Environment defaults (can be overridden)
ENV CPU_OVERLOAD_THRESHOLD=80
ENV MEMORY_OVERLOAD_THRESHOLD=80
ENV CPU_UNDERLOAD_THRESHOLD=50
ENV MEMORY_UNDERLOAD_THRESHOLD=50
ENV CLUSTER_NAME=cluster1
# Expose the WebUI port
EXPOSE 8080
# Start the node-balancer (and embedded WebUI)
ENTRYPOINT ["/usr/local/bin/node-balancer"]