fix: add Node.js to Docker build stage for frontend compilation
- Install Node.js 18.x in Docker build stage - Add MongoDB DataProtection for Swarm compatibility - Enables shared authentication keys across multiple replicas 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
870436c1ab
commit
b54aa295ac
@ -2,6 +2,10 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Install Node.js for frontend build
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
||||
&& apt-get install -y nodejs
|
||||
|
||||
# Copy csproj and restore as distinct layers
|
||||
COPY *.csproj ./
|
||||
RUN dotnet restore --runtime linux-arm64
|
||||
@ -22,7 +26,7 @@ RUN dotnet publish "QRRapidoApp.csproj" -c Release -o /app/publish \
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
# Install libgdiplus for System.Drawing (se necessário para QR codes)
|
||||
# Install libgdiplus for System.Drawing (se necess<EFBFBD>rio para QR codes)
|
||||
RUN apt-get update && apt-get install -y libgdiplus && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy published app
|
||||
|
||||
Loading…
Reference in New Issue
Block a user