diff --git a/Dockerfile b/Dockerfile index cf0c829..07c11cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /app -COPY ./ . +COPY . . +RUN dotnet restore WORKDIR /app/world -RUN dotnet restore RUN dotnet publish -c release -o /out --no-restore -FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS runtime +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime WORKDIR /app -COPY --from=build /out . +COPY --from=build /out ./ ENTRYPOINT ["dotnet", "Validation.dll"]