Skip to content

Commit

Permalink
run as the configured sbt-native-packager user instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Feb 15, 2024
1 parent 752757f commit b931cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ lazy val dockerSettings = Def.settings(
Cmd("RUN", "npm install --global yarn"),
// Ensure binaries are in PATH
Cmd("RUN", "echo $PATH"),
Cmd("RUN", "which cs mill mvn node npm sbt scala-cli scalafix scalafmt yarn")
Cmd("RUN", "which cs mill mvn node npm sbt scala-cli scalafix scalafmt yarn"),
Cmd("USER", (Docker / daemonUser).value)
)
},
Docker / packageName := s"fthomas/${name.value}",
Expand Down

0 comments on commit b931cb6

Please sign in to comment.