Skip to content

Commit

Permalink
Fix dockerPackageMappings to be absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Feb 5, 2020
1 parent 253112a commit d8dabba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.typesafe.sbt.packager.docker

import java.io.File
import java.nio.file.Paths
import java.util.UUID
import java.util.concurrent.atomic.AtomicBoolean

Expand Down Expand Up @@ -251,7 +252,9 @@ object DockerPlugin extends AutoPlugin {
validateDockerVersion(dockerApiVersion.value),
validateDockerPermissionStrategy(dockerPermissionStrategy.value, dockerVersion.value, dockerApiVersion.value)
),
dockerPackageMappings := MappingsHelper.contentOf(sourceDirectory.value),
dockerPackageMappings := MappingsHelper
.contentOf(sourceDirectory.value)
.map { case (from, to) => from -> Paths.get("/", to).toString },
dockerGenerateConfig := {
val _ = validatePackage.value
generateDockerConfig(dockerCommands.value, stagingDirectory.value)
Expand Down

0 comments on commit d8dabba

Please sign in to comment.