diff --git a/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala b/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala index ca3ea7fdb..380ac0dd5 100644 --- a/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala +++ b/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala @@ -2,6 +2,14 @@ package com.typesafe.sbt.packager.docker object DockerSupport { + @deprecated + def chownFlag(version: DockerVersion): Boolean = + (version.major == 17 && version.minor >= 9) || version.major > 17 + + @deprecated + def multiStage(version: DockerVersion): Boolean = + (version.major == 17 && version.minor >= 5) || version.major > 17 + def chownFlag(version: DockerVersion, apiVersion: DockerApiVersion): Boolean = ((version.major == 17 && version.minor >= 9) || version.major > 17) || (apiVersion.major == 1 && apiVersion.minor >= 32)