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
|
2024-11-01 08:08:19 +00:00
|
|
|
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"]
|