Files
node-external-ip-controller/node-external-ip-controller.Dockerfile

15 lines
411 B
Docker
Raw Permalink Normal View History

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
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"]