Skip to content

Commit

Permalink
Apk upgrade commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredb96 committed Nov 18, 2024
1 parent 01646c3 commit 92536fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ lazy val dockerSettings = Seq(
dockerBaseImage := "eclipse-temurin:21.0.2_13-jdk-alpine",
dockerRepository := Some("hmda"),
dockerCommands := dockerCommands.value.flatMap {
case cmd@Cmd("FROM",_) => List(cmd, Cmd("RUN", "apk update"),
case cmd@Cmd("FROM",_) => List(cmd, Cmd("RUN", "apk add --no-cache openssl"),
Cmd("RUN", "apk update"),
Cmd("RUN", "apk upgrade"),
Cmd("RUN", "rm /var/cache/apk/*"))
case other => List(other)
}
Expand Down

0 comments on commit 92536fc

Please sign in to comment.