Skip to content

Docker fix #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,6 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml

# Docker
.env
30 changes: 30 additions & 0 deletions README.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Docker

To use docker, you must have docker/docker-compose installed on your machine. From within the directory (with the docker-compose.yml file):

```
$ docker compose up -d
```

This will build all the images locally and run them. To stop (from within the same directoy as docker-compose.yml file):

```
$ docker compose down
```

You can use these same commands from Windows shell or Linux shell (on Linux you may need to do something special to allow access to port 53 if a DNS application is already running).

Configuration options can be set by using a .env file. Right now it basically contains nothing. But it can be used in the future when images are saved remotely.

```
$ cp example.env .env
$ docker compose up -d
```

The docker compose command knows how to find and read a file named .env automatically. This file is added to .gitignore since it can contain personal info if you edit it to point to your own stuff.

# TODO

* Figure out where we want to publish the images
* Add Registry back to docker-compose.yml
* Add Registry to example.env
2 changes: 1 addition & 1 deletion Servers/ApacheNet/ApacheNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</ItemGroup>

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
22 changes: 16 additions & 6 deletions Servers/ApacheNet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["WebServers/MultiHTTP/MultiHTTP.csproj", "MultiHTTP/"]
RUN dotnet restore "WebServers/MultiHTTP/MultiHTTP.csproj"
COPY ["Servers/ApacheNet/ApacheNet.csproj", "Servers/ApacheNet/"]
COPY ["AuxiliaryServices/WebAPIService/WebAPIService.csproj", "AuxiliaryServices/WebAPIService/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["BackendServices/DNSLibrary/DNSLibrary.csproj", "BackendServices/DNSLibrary/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
COPY ["BackendServices/WatsonWebserver/WatsonWebserver.csproj", "BackendServices/WatsonWebserver/"]
COPY ["BackendServices/SpaceWizards.HttpListener/SpaceWizards.HttpListener.csproj", "BackendServices/SpaceWizards.HttpListener/"]
RUN dotnet restore "Servers/ApacheNet/ApacheNet.csproj"
COPY . .
WORKDIR "/src/MultiHTTP"
RUN dotnet build "MultiHTTP.csproj" -c Release -o /app/build
WORKDIR "/src/Servers/ApacheNet"
RUN dotnet build "ApacheNet.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "MultiHTTP.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "ApacheNet.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "MultiHTTP.dll"]
ENTRYPOINT ["dotnet", "ApacheNet.dll"]
17 changes: 14 additions & 3 deletions Servers/Horizon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/Horizon/Horizon.csproj", "Horizon/"]
RUN dotnet restore "SpecializedServers/Horizon/Horizon.csproj"
COPY ["Servers/Horizon/Horizon.csproj", "Servers/Horizon/"]
COPY ["AuxiliaryServices/HorizonService/HorizonService.csproj", "AuxiliaryServices/HorizonService/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["AuxiliaryServices/WebAPIService/WebAPIService.csproj", "AuxiliaryServices/WebAPIService/"]
COPY ["BackendServices/PS2FloatLibrary/PS2FloatLibrary.csproj", "BackendServices/PS2FloatLibrary/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
COPY ["BackendServices/WatsonWebserver/WatsonWebserver.csproj", "BackendServices/WatsonWebserver/"]
COPY ["BackendServices/SpaceWizards.HttpListener/SpaceWizards.HttpListener.csproj", "BackendServices/SpaceWizards.HttpListener/"]
RUN dotnet restore "Servers/Horizon/Horizon.csproj"
COPY . .
WORKDIR "/src/Horizon"
WORKDIR "/src/Servers/Horizon"
RUN dotnet build "Horizon.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/Horizon/Horizon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
13 changes: 10 additions & 3 deletions Servers/MitmDNS/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["WebServers/MitmDNS/MitmDNS.csproj", "MitmDNS/"]
RUN dotnet restore "WebServers/MitmDNS/MitmDNS.csproj"
COPY ["Servers/MitmDNS/MitmDNS.csproj", "Servers/MitmDNS/"]
COPY ["BackendServices/DNSLibrary/DNSLibrary.csproj", "BackendServices/DNSLibrary/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
RUN dotnet restore "Servers/MitmDNS/MitmDNS.csproj"
COPY . .
WORKDIR "/src/MitmDNS"
WORKDIR "/src/Servers/MitmDNS"
RUN dotnet build "MitmDNS.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/MitmDNS/MitmDNS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</ItemGroup>

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
16 changes: 13 additions & 3 deletions Servers/MultiSocks/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/MultiSocks/MultiSocks.csproj", "MultiSocks/"]
RUN dotnet restore "SpecializedServers/MultiSocks/MultiSocks.csproj"
COPY ["Servers/MultiSocks/MultiSocks.csproj", "Servers/MultiSocks/"]
COPY ["BlazeSDK/Blaze2SDK/Blaze2SDK.csproj", "BlazeSDK/Blaze2SDK/"]
COPY ["BlazeSDK/BlazeCommon/BlazeCommon.csproj", "BlazeSDK/BlazeCommon/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BlazeSDK/Tdf/Tdf.csproj", "BlazeSDK/Tdf/"]
COPY ["BlazeSDK/Blaze3SDK/Blaze3SDK.csproj", "BlazeSDK/Blaze3SDK/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
RUN dotnet restore "Servers/MultiSocks/MultiSocks.csproj"
COPY . .
WORKDIR "/src/MultiSocks"
WORKDIR "/src/Servers/MultiSocks"
RUN dotnet build "MultiSocks.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/MultiSocks/MultiSocks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
13 changes: 10 additions & 3 deletions Servers/MultiSpy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/MultiSpy/MultiSpy.csproj", "MultiSpy/"]
RUN dotnet restore "SpecializedServers/MultiSpy/MultiSpy.csproj"
COPY ["Servers/MultiSpy/MultiSpy.csproj", "Servers/MultiSpy/"]
COPY ["AuxiliaryServices/MultiSpyService/MultiSpyService.csproj", "AuxiliaryServices/MultiSpyService/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
RUN dotnet restore "Servers/MultiSpy/MultiSpy.csproj"
COPY . .
WORKDIR "/src/MultiSpy"
WORKDIR "/src/Servers/MultiSpy"
RUN dotnet build "MultiSpy.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/MultiSpy/MultiSpy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
13 changes: 10 additions & 3 deletions Servers/QuazalServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/QuazalServer/QuazalServer.csproj", "QuazalServer/"]
RUN dotnet restore "SpecializedServers/QuazalServer/QuazalServer.csproj"
COPY ["Servers/QuazalServer/QuazalServer.csproj", "Servers/QuazalServer/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
COPY ["AuxiliaryServices/AlcatrazService/AlcatrazService.csproj", "AuxiliaryServices/AlcatrazService/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
RUN dotnet restore "Servers/QuazalServer/QuazalServer.csproj"
COPY . .
WORKDIR "/src/QuazalServer"
WORKDIR "/src/Servers/QuazalServer"
RUN dotnet build "QuazalServer.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
4 changes: 2 additions & 2 deletions Servers/QuazalServer/QuazalServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileRunArguments>-p 21032:21032 -p 30160:30160 -p 30161:30161 -p 30200:30200 -p 30201:30201 -p 30560:30560 -p 30561:30561 -p 60001:60001 -p 60105:60105 -p 60106:60106 -p 60115:60115 -p 60116:60116 -p 61110:61110 -p 61111:61111 -p 61120:61120 -p 61121:61121 -p 61125:61125 -p 61126:61126 -p 61127:61127 -p 61128:61128 -p 61129:61129 -p 61130:61130 -p 61131:61131 -p 61132:61132 -p 61133:61133 -p 61134:61134 -p 61135:61135 -p 61136:61136 -p 61137:61137 -p 61138:61138 -p 62110:62110 -p 62111:62111 -p 62125:62125 -p 62126:62126 -p 62127:62127 -p 62128:62128 -p 65535:65535</DockerfileRunArguments>
<DockerfileRunArguments>-p 21032:21032 -p 30160:30160 -p 30161:30161 -p 30200:30200 -p 30201:30201 -p 30550:30550 -p 30560:30560 -p 30561:30561 -p 60001:60001 -p 60105:60105 -p 60106:60106 -p 60115:60115 -p 60116:60116 -p 61110:61110 -p 61111:61111 -p 61120:61120 -p 61121:61121 -p 61125:61125 -p 61126:61126 -p 61127:61127 -p 61128:61128 -p 61129:61129 -p 61130:61130 -p 61131:61131 -p 61132:61132 -p 61133:61133 -p 61134:61134 -p 61135:61135 -p 61136:61136 -p 61137:61137 -p 61138:61138 -p 62110:62110 -p 62111:62111 -p 62125:62125 -p 62126:62126 -p 62127:62127 -p 62128:62128 -p 65535:65535</DockerfileRunArguments>
<ApplicationIcon>QuazalServer.ico</ApplicationIcon>
<ServerGarbageCollection>true</ServerGarbageCollection>
<DockerfileContext>..\..</DockerfileContext>
Expand Down Expand Up @@ -37,7 +37,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
15 changes: 12 additions & 3 deletions Servers/SSFWServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/SSFWServer/SSFWServer.csproj", "SSFWServer/"]
RUN dotnet restore "SpecializedServers/SSFWServer/SSFWServer.csproj"
COPY ["Servers/SSFWServer/SSFWServer.csproj", "Servers/SSFWServer/"]
COPY ["AuxiliaryServices/HomeTools/HomeTools.csproj", "AuxiliaryServices/HomeTools/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["AuxiliaryServices/WebAPIService/WebAPIService.csproj", "AuxiliaryServices/WebAPIService/"]
COPY ["BackendServices/NetCoreServer/NetCoreServer.csproj", "BackendServices/NetCoreServer/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
RUN dotnet restore "Servers/SSFWServer/SSFWServer.csproj"
COPY . .
WORKDIR "/src/SSFWServer"
WORKDIR "/src/Servers/SSFWServer"
RUN dotnet build "SSFWServer.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/SSFWServer/SSFWServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
16 changes: 13 additions & 3 deletions Servers/SVO/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SpecializedServers/SVO/SVO.csproj", "SVO/"]
RUN dotnet restore "SpecializedServers/SVO/SVO.csproj"
COPY ["Servers/SVO/SVO.csproj", "Servers/SVO/"]
COPY ["AuxiliaryServices/HorizonService/HorizonService.csproj", "AuxiliaryServices/HorizonService/"]
COPY ["BackendServices/NetworkLibrary/NetworkLibrary.csproj", "BackendServices/NetworkLibrary/"]
COPY ["BackendServices/CastleLibrary/CastleLibrary.csproj", "BackendServices/CastleLibrary/"]
COPY ["BackendServices/CustomLogger/CustomLogger.csproj", "BackendServices/CustomLogger/"]
COPY ["BackendServices/EndianTools/EndianTools.csproj", "BackendServices/EndianTools/"]
COPY ["BackendServices/CompressionLibrary/CompressionLibrary.csproj", "BackendServices/CompressionLibrary/"]
COPY ["AuxiliaryServices/WebAPIService/WebAPIService.csproj", "AuxiliaryServices/WebAPIService/"]
COPY ["BackendServices/TechnitiumLibrary.Net.Firewall/TechnitiumLibrary.Net.Firewall.csproj", "BackendServices/TechnitiumLibrary.Net.Firewall/"]
COPY ["BackendServices/WatsonWebserver/WatsonWebserver.csproj", "BackendServices/WatsonWebserver/"]
COPY ["BackendServices/SpaceWizards.HttpListener/SpaceWizards.HttpListener.csproj", "BackendServices/SpaceWizards.HttpListener/"]
RUN dotnet restore "Servers/SVO/SVO.csproj"
COPY . .
WORKDIR "/src/SVO"
WORKDIR "/src/Servers/SVO"
RUN dotnet build "SVO.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion Servers/SVO/SVO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<Target Name="ModifyDepsFile" AfterTargets="AfterBuild">
<!-- Path to the JSON file you want to modify -->
<Exec Command="powershell -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)DepsFixer.ps1&quot; -jsonFilePath $(OutDir)$(ProjectName).deps.json -targetFramework $(TargetFramework)" />
</Target>

</Project>
Loading