-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
32 lines (28 loc) · 839 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
enablePlugins(DockerPlugin)
val dockerSettings = Seq(
docker / dockerfile := {
val artifact: File = assembly.value
val artifactTargetPath = s"/app/${artifact.name}"
new Dockerfile {
from("java")
run("apt-get", "update")
run("apt-get", "-y", "install", "postgresql")
user("postgres")
expose(8080)
add(artifact, artifactTargetPath)
entryPoint("java", "-jar", artifactTargetPath)
}
},
docker / imageNames := Seq(
ImageName(s"amumurst/${name.value}:latest")
)
)
lazy val commonSettings = Seq(
libraryDependencies ++= Dependencies.coreDeps,
assembly / test := {},
Test / fork := true,
organization := "no.amumurst",
scalaVersion := "3.2.1"
)
lazy val root =
(project in file(".")).settings(commonSettings, name := "highgarden", dockerSettings)