584 B
584 B
mojo-app
An example Mojolicious application.
build docker image
$ docker build -t mojo_app .
serve app
$ docker run --rm -it -p 3000:3000 mojo_app
Visit localhost:3000 with web browser.
serve app with local changes
install dependencies
$ docker run --rm -it -p 3000:3000 -v $PWD:/opt/app --entrypoint carton mojo_app install
start the server
$ docker run --rm -it -p 3000:3000 -v $PWD:/opt/app mojo_app
Visit localhost:3000 with web browser. Changes should load when you reload
the page, without having to restart the server.