diff --git a/build.sbt b/build.sbt index a9e3030fcb..187c76e444 100644 --- a/build.sbt +++ b/build.sbt @@ -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}",