mirror of
https://github.com/eliasstepanik/IonosDDNSUpdater.git
synced 2026-01-10 11:08:27 +00:00
19 lines
533 B
Docker
19 lines
533 B
Docker
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base
|
|
WORKDIR /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
|
WORKDIR /src
|
|
COPY ["DDNSUpdater/DDNSUpdater.csproj", "DDNSUpdater/"]
|
|
RUN dotnet restore "DDNSUpdater/DDNSUpdater.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/DDNSUpdater"
|
|
RUN dotnet build "DDNSUpdater.csproj" -c Release -o /app/build
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "DDNSUpdater.csproj" -c Release -o /app/publish
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /app/publish .
|
|
ENTRYPOINT ["dotnet", "DDNSUpdater.dll"]
|