Latest commit 505b13a Sep 15, 2018

README.md

Docker

Sample project for Ktor running as an application with inside Docker.

Running

Execute this command in the repository's root directory to run this sample:

./gradlew :docker:run

To build and run a docker image:

./gradlew :docker:build
docker build -t ktor-docker-sample-application deployment/docker
docker run -m512M --cpus 2 -it -p 8080:8080 --rm ktor-docker-sample-application

And navigate to http://localhost:8080/ to see the sample home page.