mirror of
https://github.com/Sandoun/DynDNSv2.git
synced 2025-12-06 02:41:24 +00:00
dockerfile updates
This commit is contained in:
@@ -7,8 +7,8 @@ WORKDIR /app
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["DynDNSv2/DynDNSv2.csproj", "DynDNSv2/"]
|
||||
RUN dotnet restore "./DynDNSv2/./DynDNSv2.csproj"
|
||||
COPY ["./DynDNSv2/", "DynDNSv2/"]
|
||||
RUN dotnet restore "./DynDNSv2/DynDNSv2.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/DynDNSv2"
|
||||
RUN dotnet build "./DynDNSv2.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
@@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace DynDNSv2;
|
||||
|
||||
internal class Program
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args) => Task.Run(AsyncMain).Wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user