Fix: add libman restore to Dockerfile for client-side libraries

Bootstrap CSS/JS and jQuery were gitignored (wwwroot/lib/) so they
were missing from Docker builds, causing all dropdown menus and
styling to break on the deployed version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 17:31:03 -05:00
parent 2f3047d432
commit aa82ee542c

View File

@@ -6,8 +6,13 @@ WORKDIR /src
COPY MoneyMap.csproj .
RUN dotnet restore
# Install libman CLI for client-side library restore
RUN dotnet tool install -g Microsoft.Web.LibraryManager.Cli
ENV PATH="${PATH}:/root/.dotnet/tools"
# Copy everything else and build
COPY . .
RUN libman restore
RUN dotnet publish -c Release -o /app/publish
# Runtime stage