Dockerfile linkslatest, 5, 5.24, 5.24.1 (5.024.001-64bit/Dockerfile)threaded, 5-threaded, 5.24-threaded, 5.24.1-threaded (5.024.001-64bit,threaded/Dockerfile)5.22, 5.22.3 (5.022.003-64bit/Dockerfile)5.22-threaded, 5.22.3-threaded (5.022.003-64bit,threaded/Dockerfile)Where to get help:
the Docker Community Forums, the Docker Community Slack, or Stack Overflow
Where to file issues:
https://github.com/Perl/docker-perl/issues
Maintained by:
the Perl Community
Published image artifact details:
repo-info repo's repos/perl/ directory (history)
(image metadata, transfer size, etc)
Image updates:
official-images PRs with label library/perl
official-images repo's library/perl file (history)
Source of this description:
docs repo's perl/ directory (history)
Supported Docker versions:
the latest release (down to 1.6 on a best-effort basis)
Perl is a high-level, general-purpose, interpreted, dynamic programming language. The Perl language borrows features from other programming languages, including C, shell scripting (sh), AWK, and sed.
Dockerfile in your Perl app projectFROM perl:5.20
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "perl", "./your-daemon-or-script.pl" ]
Then, build and run the Docker image:
$ docker build -t my-perl-app .
$ docker run -it --rm --name my-running-app my-perl-app
For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Perl script by using the Perl Docker image directly:
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp perl:5.20 perl your-daemon-or-script.pl
View license information for the software contained in this image.