- FROM alpine:latest
- LABEL maintainer="fred.damstra@gmail.com"
- LABEL version="0.2"
- LABEL description="Docker image that updates a route53 zone record with the current IP (home grown dynip)"
- RUN echo -e "search default.svc.cluster.local svc.cluster.local cluster.local\nnameserver 10.152.183.10\noptions ndots:2" > /etc/resolv.conf
- RUN apk add --no-cache curl aws-cli bash
- COPY . /opt/update-route53
- RUN chmod 755 /opt/update-route53/update-route53.sh \
- && mkdir /scratch
- CMD ["/opt/update-route53/update-route53.sh"]
|