Sign inSign up

sherwind/dancer

By sherwind

Updated over 10 years ago

Dancer is a lightweight yet powerful web application framework written in Perl

Image
2

1.3K

sherwind/dancer repository overview

How to use this image

Create a Dockerfile in your Dancer app project

FROM sherwind/dancer:onbuild

# comment out to use development environment
ENV DANCER_ENVIRONMENT production

You can then build and run the Docker image:

docker build -t my-dancer-app .
docker run -it --rm --name my-running-app -p 5000:5000 my-dancer-app

You can test it by visiting http://localhost:5000 in a browser. If you are using boot2docker on Mac OS X, use OS X's open command to test it instead:

open http://$(boot2docker ip 2>/dev/null):5000
Generate a cpanfile.snapshot

The onbuild tag assumes that your application is using Carton to manage its dependencies and both cpanfile and cpanfile.snapshot files exist in your app directory. To generate a cpanfile.snapshot, you can run carton install by using the Dancer Docker image directly:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app sherwind/dancer carton install

Bootstrap a new Dancer application

If you want to generate the scaffolding for a new Dancer project, you can do the following:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app sherwind/dancer dancer2 -a MyWebApp

This will create a sub-directory named MyWebApp inside your current directory.

Tag summary

Content type

Image

Digest

sha256:59ce58f77

Size

257.3 MB

Last updated

over 10 years ago

docker pull sherwind/dancer