Skip to content

okosatka/dockerize-gradle-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Dockerize Your Application

This is an example how to simply dockerize your application with minimal effort.

Build

gradle distribution

Distribution task depends on dockerize task and fatjar task.

Make a docker image

Directory ${buildDir}/distribution contains all you need to create docker image.

cd build/distribution
docker build -t jersey/hello .

Run docker image

docker run -p 4001:4004 -d jersey/hello

Test

curl localhost:4001/base/helloworld

...and here we go

Hello World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages