From 438cb1b6531a336c01bd50f72f126d891564b1c0 Mon Sep 17 00:00:00 2001 From: Sergey Koshelev Date: Thu, 12 Dec 2024 18:40:11 +0300 Subject: [PATCH] #7448 Docker is not create container --- Dockerfile | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc7d014c558..6db0bad0ebb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,19 +4,8 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build WORKDIR /src COPY ./src ./ -WORKDIR /src/Presentation/Nop.Web - -# build project -RUN dotnet build Nop.Web.csproj -c Release - -# build plugins -WORKDIR /src/Plugins -RUN set -eux; \ - for dir in *; do \ - if [ -d "$dir" ]; then \ - dotnet build "$dir/$dir.csproj" -c Release; \ - fi; \ - done +# build solution +RUN dotnet build NopCommerce.sln --no-incremental -c Release # publish project WORKDIR /src/Presentation/Nop.Web