night-light/NightLight/Dockerfile
Sven van Heugten 52ec6dc025 Fix Docker build
The solution file includes the test project, but the test project isn't
copied into the first stage of the Dockerfile.
2026-01-04 20:23:18 +01:00

13 lines
452 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /app
COPY NightLight.sln ./
COPY NightLight.Core/NightLight.Core.fsproj NightLight.Core/
COPY NightLight/NightLight.fsproj NightLight/
RUN dotnet restore NightLight/NightLight.fsproj
COPY . ./
RUN dotnet publish NightLight/NightLight.fsproj --no-restore -c Release -o out
FROM mcr.microsoft.com/dotnet/runtime:9.0
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "NightLight.dll"]