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:
@@ -6,8 +6,13 @@ WORKDIR /src
|
|||||||
COPY MoneyMap.csproj .
|
COPY MoneyMap.csproj .
|
||||||
RUN dotnet restore
|
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 everything else and build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN libman restore
|
||||||
RUN dotnet publish -c Release -o /app/publish
|
RUN dotnet publish -c Release -o /app/publish
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
|
|||||||
Reference in New Issue
Block a user