|
|
@ -59,8 +59,8 @@ namespace Microsoft.Tye |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
// We need to write the file, let's stick it under obj.
|
|
|
// We need to write the file, let's stick it under obj.
|
|
|
Directory.CreateDirectory(Path.Combine(project.ProjectFile.DirectoryName, "obj")); |
|
|
Directory.CreateDirectory(project.IntermediateOutputPath); |
|
|
dockerFilePath = Path.Combine(project.ProjectFile.DirectoryName, "obj", "Dockerfile"); |
|
|
dockerFilePath = Path.Combine(project.IntermediateOutputPath, "Dockerfile"); |
|
|
|
|
|
|
|
|
// Clean up file when done building image
|
|
|
// Clean up file when done building image
|
|
|
tempFile = new TempFile(dockerFilePath); |
|
|
tempFile = new TempFile(dockerFilePath); |
|
|
@ -83,7 +83,7 @@ namespace Microsoft.Tye |
|
|
// Clean up directory when done building image
|
|
|
// Clean up directory when done building image
|
|
|
tempDirectory = new TempDirectory(publishOutput.Directory); |
|
|
tempDirectory = new TempDirectory(publishOutput.Directory); |
|
|
|
|
|
|
|
|
if (File.Exists(dockerFilePath) & container.UseMultiphaseDockerfile == false) |
|
|
if (File.Exists(dockerFilePath)) |
|
|
{ |
|
|
{ |
|
|
output.WriteDebugLine($"Using existing Dockerfile '{dockerFilePath}'."); |
|
|
output.WriteDebugLine($"Using existing Dockerfile '{dockerFilePath}'."); |
|
|
File.Copy(dockerFilePath, Path.Combine(contextDirectory, "Dockerfile")); |
|
|
File.Copy(dockerFilePath, Path.Combine(contextDirectory, "Dockerfile")); |
|
|
|