node-external-ip-controller/node-external-ip-controller...

15 lines
411 B
Plaintext
Raw Permalink Normal View History

2024-10-31 15:28:20 +00:00
# Use Python base image
FROM python:3.13-alpine3.19
# Install the Kubernetes Python client
2025-01-12 07:43:39 +00:00
RUN pip install kubernetes kubernetes_asyncio PyYAML
2024-10-31 15:28:20 +00:00
# Copy the controller script into the container
COPY node_external_ip_controller_async.py /app/node_external_ip_controller.py
2024-10-31 15:28:20 +00:00
# Set the working directory
WORKDIR /app
# Set the command to run the controller script
CMD ["python", "node_external_ip_controller.py"]