Skip to content

Commit 42afa22

Browse files
committed
Add node/yarn to the docker image
These tools are required to deal with some scala.js projects. See wiringbits/scala-webapp-template#298
1 parent b483de7 commit 42afa22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,12 @@ lazy val dockerSettings = Def.settings(
334334
val coursierBin = s"$binDir/coursier"
335335
Seq(
336336
Cmd("USER", "root"),
337-
Cmd("RUN", "apk --no-cache add bash git ca-certificates curl maven openssh"),
337+
Cmd("RUN", "apk --no-cache add bash git ca-certificates curl maven openssh nodejs npm"),
338338
Cmd("RUN", s"wget $sbtUrl && tar -xf $sbtTgz && rm -f $sbtTgz"),
339339
Cmd("RUN", s"curl -L $millUrl > $millBin && chmod +x $millBin"),
340340
Cmd("RUN", s"curl -L https://git.io/coursier-cli > $coursierBin && chmod +x $coursierBin"),
341-
Cmd("RUN", s"$coursierBin install --install-dir $binDir scalafix scalafmt")
341+
Cmd("RUN", s"$coursierBin install --install-dir $binDir scalafix scalafmt"),
342+
Cmd("RUN", "npm install --global yarn")
342343
)
343344
},
344345
Docker / packageName := s"fthomas/${name.value}",

0 commit comments

Comments
 (0)