File tree 1 file changed +7
-1
lines changed
src/main/scala/com/typesafe/sbt/packager/docker
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ object DockerPlugin extends AutoPlugin {
57
57
58
58
import autoImport ._
59
59
60
+ /**
61
+ * The separator for makeAdd force UNIX separator.
62
+ * The separator doesn't depend to OS where i build Dockerfile.
63
+ */
64
+ val UnixSeparatorChar = '/'
65
+
60
66
override def requires = universal.UniversalPlugin
61
67
62
68
override lazy val projectSettings = Seq (
@@ -149,7 +155,7 @@ object DockerPlugin extends AutoPlugin {
149
155
* @return ADD command adding all files inside the installation directory
150
156
*/
151
157
private final def makeAdd (dockerBaseDirectory : String ): CmdLike = {
152
- val files = dockerBaseDirectory.split(java.io. File .separator )(1 )
158
+ val files = dockerBaseDirectory.split(UnixSeparatorChar )(1 )
153
159
Cmd (" ADD" , s " $files / $files" )
154
160
}
155
161
You can’t perform that action at this time.
0 commit comments