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 🌈

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