From 965c94a223502309f54b58375a8ff6e1df62efd5 Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Sat, 12 Jun 2021 16:59:48 +0100 Subject: [PATCH] Finalise the script autorun in docker --- Dockerfile | 3 +++ manage-dns.pl | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 manage-dns.pl diff --git a/Dockerfile b/Dockerfile index ef9cdb2..c4b1c5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,6 @@ FROM alpine # docker build -t fooflington/mythic-beasts-dns . LABEL maintainer="Matthew Slowe " RUN apk --no-cache add perl perl-yaml perl-lwp-protocol-https perl-json perl-uri perl-yaml-tiny perl-www-form-urlencoded + +COPY manage-dns.pl /docker-entry-point.pl +ENTRYPOINT ["perl", "/docker-entry-point.pl"] \ No newline at end of file diff --git a/manage-dns.pl b/manage-dns.pl old mode 100644 new mode 100755 index 0e75687..a6907bd --- a/manage-dns.pl +++ b/manage-dns.pl @@ -1,6 +1,7 @@ -#!/usr/bin/env perl -w +#!/usr/bin/perl use strict; +use warnings; use LWP::UserAgent; use Data::Dumper;