https://github.com/samlet/ktor.play
https://github.com/samlet/ktor.play
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samlet/ktor.play
- Owner: samlet
- Created: 2018-07-09T20:12:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T20:15:41.000Z (almost 8 years ago)
- Last Synced: 2025-02-15T00:30:17.442Z (over 1 year ago)
- Language: Kotlin
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker
Sample project for [Ktor](http://ktor.io) running as an application with
inside [Docker](https://www.docker.com/).
## Running
Execute this command in the repository's root directory to run this sample:
```bash
./gradlew :docker:run
```
To build and run a docker image:
```bash
./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/](http://localhost:8080/) to see the sample home page.