Mojolic...kerfile(3)
β¨ NAME β¨
Okay so bestie, this is Mojolic...kerfile(3) β that's the fancy truncated man-page header, the real name is Mojolicious::Command::Author::generate::dockerfile, and it's from the User Contributed Perl Documentation section, iykyk π
It's the Dockerfile generator command β literally the little icon that writes your Dockerfile for you π
πΈ SYNOPSIS πΈ
Usage: APPLICATION generate dockerfile [OPTIONS]
./myapp.pl generate dockerfile
./script/my_app generate dockerfile
Options:
-h, --help Show this summary of available options
Two ways to run it, both slay, pick whichever matches your app's layout π«Ά
π¦ DESCRIPTION π¦
Mojolicious::Command::Author::generate::dockerfile generates "Dockerfile" for applications. That's it, that's the whole vibe β it makes the Dockerfile, no cap β¨
This is a core command, which means it's always enabled (it never ghosts you π) and its code is a genuinely good example for learning to build new commands. You're welcome to fork it β the author literally says so, go be the main character π
Also, peep "COMMANDS" in Mojolicious::Commands for the list of commands that are available by default. Very much worth the read, fr fr.
π§ ATTRIBUTES π§
Mojolicious::Command::Author::generate::dockerfile inherits all attributes from Mojolicious::Command and implements the following new ones π
π description
my $description = $dockerfile->description;
$dockerfile = $dockerfile->description('Foo');
Short description of this command, used for the command list. It's the little one-liner that shows up in the menu, so keep it cute and keep it short πΈ
π usage
my $usage = $dockerfile->usage;
$dockerfile = $dockerfile->usage('Foo');
Usage information for this command, used for the help screen. So when somebody asks for help, this is what they get π
π₯ METHODS π₯
Mojolicious::Command::Author::generate::dockerfile inherits all methods from Mojolicious::Command and implements the following new ones β¨
β run
$dockerfile->run(@ARGV);
Run this command. Simple as that β pass it the args and let it do its thing π
π SEE ALSO π
MojoliciousMojolicious::Guides- <https://mojolicious.org>
All the lore is right there, go binge it π§ββοΈ
π Friendly reminder that this page came from perl v5.42.0, dated 2026-07-15 β so if you're reading this way later, hi, hope the vibes are still immaculate ππ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms