Finalise the script autorun in docker

This commit is contained in:
Matthew Slowe 2021-06-12 16:59:48 +01:00
parent 1519c653aa
commit 965c94a223
2 changed files with 5 additions and 1 deletions

View File

@ -2,3 +2,6 @@ FROM alpine
# docker build -t fooflington/mythic-beasts-dns . # docker build -t fooflington/mythic-beasts-dns .
LABEL maintainer="Matthew Slowe <foo@mafoo.org.uk>" LABEL maintainer="Matthew Slowe <foo@mafoo.org.uk>"
RUN apk --no-cache add perl perl-yaml perl-lwp-protocol-https perl-json perl-uri perl-yaml-tiny perl-www-form-urlencoded 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"]

3
manage-dns.pl Normal file → Executable file
View File

@ -1,6 +1,7 @@
#!/usr/bin/env perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use LWP::UserAgent; use LWP::UserAgent;
use Data::Dumper; use Data::Dumper;