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
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["DynDNSv2/DynDNSv2.csproj", "DynDNSv2/"]
|
COPY ["./DynDNSv2/", "DynDNSv2/"]
|
||||||
RUN dotnet restore "./DynDNSv2/./DynDNSv2.csproj"
|
RUN dotnet restore "./DynDNSv2/DynDNSv2.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/DynDNSv2"
|
WORKDIR "/src/DynDNSv2"
|
||||||
RUN dotnet build "./DynDNSv2.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "./DynDNSv2.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using Microsoft.Extensions.Logging;
|
|||||||
|
|
||||||
namespace DynDNSv2;
|
namespace DynDNSv2;
|
||||||
|
|
||||||
internal class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args) => Task.Run(AsyncMain).Wait();
|
static void Main(string[] args) => Task.Run(AsyncMain).Wait();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user