Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 472 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 472 Bytes

Dockerizing a Scala Application

This is a simple example of how to create Docker image for a Scala application.

To build the Docker image, run following commands in sbt

> compile
> docker:publishLocal

To run the docker image, run following command in terminal

$ docker run -p 8080:8080 example/example-service:0.1.0

Open http://localhost:8080/hello in browser and you'll see a hello page.