Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 418 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 418 Bytes

Scalatra Docker App

Prerequisites

  • SBT
  • Docker

Build & Run Docker image

$ cd scalatra-docker
$ sbt
> docker
> ctrl+d
$ docker run -ti \
  -p 8080:80 \
  -v $(pwd)/conf:/app/conf:ro \
  -v $(pwd)/data:/app/data \
  -e CONFIG_FILE=/app/conf/application.conf \
  org.scalatra/scalatra-docker-app

Develop

$ cd scalatra-docker
$ sbt
> jetty:start
> browse
> jetty:stop