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

15 lines
385 B
Docker
Raw 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
RUN pip install kubernetes
# 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"]