Sign inSign up

ebruni/mojolicious

By ebruni

Updated almost 2 years ago

Based on alpine, as much as possible smallest image to run mojolicious, a web framework in Perl

Image
Developer tools
0

2.0K

ebruni/mojolicious repository overview

What is Docker-mojolicious?

Docker-mojolicious is a minimum components to run Mojolicious, a real-time web framework and web development toolkit written in Perl.

All images, unless explicitly defined, are based on alpine:3.20 and provide installed together with these Perl modules:

How to use this image

Generate an example application.

Go to your code folder, call Mojolicious to create the basic application structure with you as the owner.

$ docker container run --rm -v "$(pwd):/usr/src/app" ebruni/mojolicious mojo generate app MyApp

Start the application as daemon.

$ cd my_app
$ docker container run -d --rm -v "$(pwd):/usr/src/app" -p 3000:3000 ebruni/mojolicious morbo script/my_app

To run the container in the foreground and read the output, omit the -d and add -ti

$ docker container run --rm -ti -v "$(pwd):/usr/src/app" -p 3000:3000 ebruni/mojolicious morbo script/my_app

Browse to localhost:3000 and edit the code in the current folder. If you are on Linux or MacOS, the server will restart whenever you change a file. On Windows this works if you use Docker Desktop with WSL 2.

To switch from development to production an run the application as daemon in the full featured non-blocking web server start it with

$ docker container run -d --rm -v "$(pwd):/usr/src/app" -p 3000:3000 ebruni/mojolicious script/my_app prefork

Authors

Emiliano Bruni (EB) [email protected]

Changes

AUTHORDATEVER.COMMENTS
EB2024-10-292.0Updated to alpine 3.20. Mojolicious to v. 9.38
EB2022-07-071.6Add DBIC/mysql client support. Add tini package.
EB2022-06-071.5Update to Mojolicious v. 9.26
EB2022-02-241.4Update to Mojolicious v. 9.22
EB2021-09-091.3Add tags for Mojolicious::Plugin::Mongodbv2.
EB2021-09-091.2Removed Minion::Backend::MongoDB.
EB2021-09-071.1Update Minion::Backend::MongoDB to latest version.
EB2021-08-231.0Initial Version.

Source

The source of this image on GitHub.

Tag summary

Content type

Image

Digest

sha256:bd340ad0b

Size

17.4 MB

Last updated

almost 2 years ago

docker pull ebruni/mojolicious