Working on making docker image

This commit is contained in:
Pavel Kachalouski
2019-05-18 01:37:37 +02:00
parent 9d30525c8a
commit b6921f09d1
16 changed files with 33 additions and 18 deletions

View File

@@ -3,14 +3,15 @@ import Dependencies._
lazy val commonSettings = Seq(
organization := "com.example",
scalaVersion := "2.12.8",
version := "0.1.0-SNAPSHOT",
version := "1.0.0",
mainClass := Some("eu.xeppaka.bot.Main")
)
inThisBuild(commonSettings)
lazy val `telegram-bot` = (project in file("telegram-bot"))
lazy val `telegram-bot-delivery` = (project in file("."))
.settings(
name := "telegram-bot-delivery",
libraryDependencies ++= Seq(
scalaTest % Test,
akka,
@@ -23,6 +24,10 @@ lazy val `telegram-bot` = (project in file("telegram-bot"))
circleGeneric,
circleParser,
circeAkkaHttp
)
),
Docker / defaultLinuxInstallLocation := "/opt/telegram-bot-delivery",
Docker / dockerExposedPorts := Seq(88, 8443),
Docker / dockerRepository := Some("registry.xeppaka.eu:443")
)
.enablePlugins(JavaServerAppPackaging)
.enablePlugins(DockerPlugin)