Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Web/Resgrid.Web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ FROM build AS publish
ARG BUILD_VERSION
RUN dotnet tool install -g Microsoft.Web.LibraryManager.Cli
ENV PATH="${PATH}:/root/.dotnet/tools"
# Pre-restore client libraries with retries to survive transient CDN failures.
# The csproj PrepublishScript is skipped when SKIP_LIBMAN_RESTORE=1 is set.
RUN for i in 1 2 3; do libman restore && break || { echo "libman restore attempt $i failed, retrying..."; sleep 10; }; done
ENV SKIP_LIBMAN_RESTORE=1
RUN dotnet publish "Resgrid.Web.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}

FROM base AS final
Expand Down
2 changes: 1 addition & 1 deletion Web/Resgrid.Web/Resgrid.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<PackageReference Include="System.Reflection.Metadata" Version="9.0.3" />
<PackageReference Include="System.ServiceModel.Syndication" Version="9.0.3" />
</ItemGroup>
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish" Condition="'$(SKIP_LIBMAN_RESTORE)' != '1'">
<Exec Command="libman restore" />
</Target>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Web/Resgrid.Web/libman.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"destination": "wwwroot/lib/plyr/"
},
{
"library": "@microsoft/signalr@latest",
"library": "@microsoft/signalr@8.0.7",
"destination": "wwwroot/lib/signalr/"
},
{
Expand Down
Loading