Docker: Perl Hello World in script



examples/hello-world-perl-script/Dockerfile
FROM ubuntu:20.04
COPY hello_world.pl /opt/
CMD  perl /opt/hello_world.pl

examples/hello-world-perl-script/hello_world.pl
use 5.010;
use strict;
use warnings;

say 'Hello World from Perl script';

$ docker build -t mydocker .
$ docker run -it --rm mydocker
Hello World from Perl script