Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Last active April 8, 2017 21:56
Show Gist options
  • Select an option

  • Save jeremytregunna/6fc6d7fabf32a80fedb4c56d4c2db499 to your computer and use it in GitHub Desktop.

Select an option

Save jeremytregunna/6fc6d7fabf32a80fedb4c56d4c2db499 to your computer and use it in GitHub Desktop.
mappings in Universal ++= contentOf("data")
dockerfile in docker := {
val appDir: File = stage.value
val targetDir = "/app"
new Dockerfile {
from("openjdk:latest")
entryPoint(s"$targetDir/bin/${executableScriptName.value}")
copy(appDir, targetDir)
}
}
@jeremytregunna
Copy link
Copy Markdown
Author

data dir contains some other subdirs and files. this is a non-functioning subset of build.sbt in which the app can't find those files once it's container is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment