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 .
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user