diff --git a/Dockerfile b/Dockerfile index 319611e..2e08a0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 as build-env WORKDIR /src -COPY *.csproj . +COPY . . RUN dotnet restore COPY . . RUN dotnet publish -c Release -o /publish @@ -10,4 +10,4 @@ WORKDIR /publish COPY --from=build-env /publish . ENV ASPNETCORE_URLS=http://+:6000 EXPOSE 6000 -ENTRYPOINT ["dotnet", "demo-dotnet.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "demo-dotnet.dll"]