Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
testing testing :)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankivo committed Mar 3, 2022
1 parent fb6092c commit 89b1a03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ dockerAlias := dockerAlias.value.withName("oosterhuisf/covid-telegram").withTag(

lazy val osDependencies = Seq("bash", "fontconfig", "openjdk17-jre", "ttf-dejavu")

dockerCommands := dockerCommands.value.flatMap {
case Cmd("USER", args@_*) if args.contains("1001:0") => Seq(
Cmd("RUN", "apk add --no-cache", osDependencies.mkString(" ")),
Cmd("USER", args: _*)
)
case cmd => Seq(cmd)
}
dockerCommandsPrepend := Seq(Cmd("RUN", "apk add --no-cache ttf-dejavu bash"))
lazy val cmds = Seq(Cmd("RUN", "echo banaan > frank.log"))

dockerCommandsCustom := Map(
"image:after:from" -> (cmds :+ Cmd("RUN", "apk add --no-cache", osDependencies.mkString(" "))),
"image:after:workdir" -> cmds,
)
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9-frank")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.11-frank")

0 comments on commit 89b1a03

Please sign in to comment.