Skip to content

Commit

Permalink
#7448 Docker is not create container
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshelev committed Dec 12, 2024
1 parent b3f098d commit 438cb1b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 438cb1b

Please sign in to comment.