@@ -332,7 +332,7 @@ lazy val metadataSettings = Def.settings(
332
332
333
333
lazy val dockerSettings = Def .settings(
334
334
dockerBaseImage := Option (System .getenv(" DOCKER_BASE_IMAGE" ))
335
- .getOrElse(" adoptopenjdk/openjdk11: alpine" ),
335
+ .getOrElse(" eclipse-temurin:11- alpine" ),
336
336
dockerCommands ++= {
337
337
val binDir = " /usr/local/bin"
338
338
val sbtVer = sbtVersion.value
@@ -343,12 +343,18 @@ lazy val dockerSettings = Def.settings(
343
343
val millUrl =
344
344
s " https://github.com/lihaoyi/mill/releases/download/ ${millVer.split(" -" ).head}/ $millVer"
345
345
val coursierBin = s " $binDir/coursier "
346
+ val installScalaCliStep = Seq (
347
+ " wget -q -O scala-cli.gz https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-pc-linux-static.gz" ,
348
+ " gunzip scala-cli.gz" ,
349
+ " chmod +x scala-cli" ,
350
+ " mv scala-cli /usr/bin/"
351
+ ).mkString(" && " )
346
352
Seq (
347
353
Cmd (" USER" , " root" ),
348
354
Cmd (" RUN" , " apk --no-cache add bash git ca-certificates curl maven openssh nodejs npm" ),
349
355
Cmd (" RUN" , s " wget $sbtUrl && tar -xf $sbtTgz && rm -f $sbtTgz" ),
350
356
Cmd (" RUN" , s " curl -L $millUrl > $millBin && chmod +x $millBin" ),
351
- Cmd (" RUN" , " curl -sSLf https://virtuslab.github.io/scala-cli-packages/scala-setup.sh | sh " ),
357
+ Cmd (" RUN" , installScalaCliStep ),
352
358
Cmd (" RUN" , s " curl -L https://git.io/coursier-cli > $coursierBin && chmod +x $coursierBin" ),
353
359
Cmd (" RUN" , s " $coursierBin install --install-dir $binDir scalafix scalafmt " ),
354
360
Cmd (" RUN" , " npm install --global yarn" )
0 commit comments