# file: Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder

WORKDIR /app
# Copy everything from src-directory on host to workdir in image

COPY src .
# Build and publish a release to directory "out" (build implicitly restores NuGet packages)
RUN dotnet publish -c Release -o out

CMD ["dotnet", "/app/out/ConsoleApp1.dll"]
