Files
VDR/VirtualDDNSRouter.Server/Dockerfile
Mohammad Mahdi e7957e7138
All checks were successful
Build and Push Server Docker Image / build-server (push) Successful in 7m55s
Fix Dockerfile path
2025-09-03 18:17:37 +03:30

17 lines
450 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0.100-preview.7-alpine3.22-aot AS build
# Install NativeAOT build prerequisites
RUN apk update \
&& apk add --no-cache \
clang zlib-dev
WORKDIR /source
COPY . .
RUN dotnet publish -r linux-musl-x64 -o /app 'VirtualDDNSRouter.Server.csproj'
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0.0-preview.7-alpine3.22
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["/app/VirtualDDNSRouter.Server"]