Need help with dockerize-me?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

204 Stars 22 Forks 22 Commits 1 Opened issues


This tool lets you Dockerize your applications using best practices to define your Dockerfile and Docker entry point files.

Services available


Need anything else?

Contributors list

# 83,481
17 commits
# 345,435
2 commits
# 430,396
1 commit

Dockerize Me

MicroBadger Docker Hub Docker Pulls Docker Stars

Tired of copy/pasting Dockerfiles around? Not sure about best practices for Dockerfiles or Docker entry points? This tool lets you Dockerize your applications using best practices to define your Dockerfile and Docker entry point files.

You just need to mount your app into the

folder and follow the instructions. It'll generate a valid
, and, if needed, a valid
file to be used as entry point.


You can run this utility with Docker

$ docker run -it --rm -v $PWD:/app fiunchinho/dockerize-me

Your email: [email protected] Your full name: Alice Wonderland Does the container run Java? [False] Which file/folder needs to be copied to the container? It'll be copied into '/app' [.] Which port do you want to expose? [No ports exposed] Do you need an entrypoint to do stuff before running the app? [False] Which command needs to be executed to start your application? Your app lives in '/app' python /app/dockerize-me/ System dependencies (f.e python=2.7.11-r3 py-pip=7.1.2-r0): python=2.7.11-r3 py-pip=7.1.2-r0 App dependencies command (f.e pip install -r requirements.txt): [False] pip install -r requirements.txt

You can build your container running the following command: docker build \ --build-arg vcs_type=git \ --build-arg vcs_url=git config --get remote.origin.url \ --build-arg vcs_branch=git rev-parse --abbrev-ref HEAD \ --build-arg vcs_ref=git rev-parse HEAD \ --build-arg build_date=date -u +"%Y-%m-%dT%H:%M:%SZ"
-t your_image .

This has generated a Dockerfile. If you have selected to use a docker entrypoint, a file called
will be generated. Before building your image, give execution permissions to this file.


This project allow people to easily create nice Dockerfiles to dockerize their applications. Besides, it's a way to document how to craft good Docker images.


This tool uses the following images to keep your Docker images as tiny as possible - anapsix/alpine-java When selecting a Java project - alpine For the rest

Init system

We use tini as init system, so you don't have problems with signals or zombie processes.


All our images have special labels that help us determine which is inside the image. This tool also copies the Dockerfile used to build the image inside the container. The labels added to the images are -

type of vcs like Git or Subversion -
url of the git repository -
sha1 hash of the commit when the image was built -
git branch when the image was built -
path to the Dockerfile inside the container. Normally
date and time when the image was built

Once you've generated the

, you can build your image with
docker build \ 
    --build-arg vcs_type=git \ 
    --build-arg vcs_url=`git config --get remote.origin.url` \ 
    --build-arg vcs_branch=`git rev-parse --abbrev-ref HEAD` \ 
    --build-arg vcs_ref=`git rev-parse HEAD` \ 
    --build-arg build_date=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ 
    -t your_image_name .

Developer Experience

Trying to make life easier for developers, images that need a docker entry point and images that don't, they both accept commands the same way. Images created with this tool let you - Run the default command

docker run -it --rm -v $PWD:/app fiunchinho/dockerize-me
- Get an shell
docker run -it --rm -v $PWD:/app fiunchinho/dockerize-me sh
- Use a different command
docker run -it --rm -v $PWD:/app fiunchinho/dockerize-me python --version


I learn many of these concepts thanks to garethr, jpetazzo or jbaruch. You should definitely listen to them.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.