mirror of
https://github.com/eliasstepanik/IonosDDNSUpdater.git
synced 2026-01-11 11:38:27 +00:00
21 lines
573 B
Docker
21 lines
573 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 .
|
|
ENV API_Key=default
|
|
ENV DOMAINS=default
|
|
ENTRYPOINT ["dotnet", "DDNSUpdater.dll"]
|