15 lines
411 B
Docker
15 lines
411 B
Docker
# Use Python base image
|
|
FROM python:3.13-alpine3.19
|
|
|
|
# Install the Kubernetes Python client
|
|
RUN pip install kubernetes kubernetes_asyncio PyYAML
|
|
|
|
# Copy the controller script into the container
|
|
COPY node_external_ip_controller_async.py /app/node_external_ip_controller.py
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Set the command to run the controller script
|
|
CMD ["python", "node_external_ip_controller.py"]
|