Files
2026-05-31 16:07:30 +02:00

35 lines
935 B
Plaintext

# ----------------------------
# Dockerfile for node-pool-controller
# ----------------------------
# Use a small base image with libc
FROM debian:bookworm-slim
# Set working directory
WORKDIR /app
# Copy the pre-compiled binary into the container
# Make sure your local file is called "node-pool-controller"
COPY node-pool-controller /app/node-pool-controller
# Make the binary executable
RUN chmod +x /app/node-pool-controller
# Copy any config files if needed (optional)
# COPY node-pool-controller.yaml /app/node-pool-controller.yaml
# Set environment variables as placeholders (can be overridden in deployment)
ENV NODE_LIST_FILE=/mnt/nfs-share/prod/node-pool-controller/node-pool.yaml
ENV NODE_SSH_USER=pi
ENV NODE_SSH_PASS=raspberry
ENV MIN_CPU=10
ENV MAX_CPU=70
ENV MIN_MEM=20
ENV MAX_MEM=80
# Expose any ports if needed (optional)
# EXPOSE 8080
# Command to run the controller
ENTRYPOINT ["/app/node-pool-controller"]