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