eindelijk weer eens een push
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user