mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-17 13:24:26 +01:00
Add script and instruction to build all the docker images by yourself
This commit is contained in:
28
contrib/DockerFileBuildHelper/DockerFile.cs
Normal file
28
contrib/DockerFileBuildHelper/DockerFile.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace DockerFileBuildHelper
|
||||
{
|
||||
public class DockerFile
|
||||
{
|
||||
public string DockerFileName { get; private set; }
|
||||
public string DockerFilePath { get; private set; }
|
||||
|
||||
public static DockerFile Parse(string str)
|
||||
{
|
||||
var file = new DockerFile();
|
||||
var lastPart = str.LastIndexOf('/');
|
||||
file.DockerFileName = str.Substring(lastPart + 1);
|
||||
if (lastPart == -1)
|
||||
{
|
||||
file.DockerFilePath = ".";
|
||||
}
|
||||
else
|
||||
{
|
||||
file.DockerFilePath = str.Substring(0, lastPart);
|
||||
}
|
||||
return file;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user