+5
-5
@@ -1,13 +1,13 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src/web
|
WORKDIR /src
|
||||||
|
|
||||||
COPY web/web.csproj ./
|
COPY web/web.csproj web/
|
||||||
RUN dotnet restore web.csproj
|
RUN dotnet restore web/web.csproj
|
||||||
|
|
||||||
# Copy only the web project files to avoid bringing other projects into the build context
|
# Copy only the web project files to avoid bringing other projects into the build context
|
||||||
COPY . ./
|
COPY web/. /web
|
||||||
RUN dotnet publish web.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish web/web.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user