Only restore the packages we need for the one off service stuck in .net 5

This commit is contained in:
Josh Coleman 2021-08-03 23:00:30 -07:00
parent 7082ae4b10
commit c78134b4d0

View File

@ -44,10 +44,10 @@ COPY "docker-compose.dcproj" "docker-compose.dcproj"
COPY "NuGet.config" "NuGet.config"
RUN dotnet restore "eShopOnContainers-ServicesAndWebApps.sln"
# RUN dotnet restore "eShopOnContainers-ServicesAndWebApps.sln"
COPY . .
WORKDIR /src/Web/WebStatus
RUN dotnet publish --no-restore -c Release -o /app
RUN dotnet publish -c Release -o /app
FROM build AS publish