title: How to Dockerize CodeEffects Rules Engine Angular Implementation
body: <p>We are using <a href="https://codeeffects.com/Doc/Business-Rule-Implementation-Example-Core-Angular" rel="nofollow noreferrer">CodeEffects Rules Engine with Angular Implementation</a> and trying to dockerize the application. But the build is throwing an exception; need help from this group in resolving the error.</p>
  <p>Below is my docker script and also attaching the error screenshot for reference</p>
  <p><strong>NOTE:</strong> Application works fine without docker in local.</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
  
  RUN apt-get update &amp;&amp; \
  apt-get install -y wget &amp;&amp; \
  apt-get install -y gnupg2 &amp;&amp; \
  wget -qO- https://deb.nodesource.com/setup_12.x | bash - &amp;&amp; \
  apt-get install -y build-essential nodejs
  
  WORKDIR /app
  
  # Copy csproj and restore as distinct layers
  COPY *.csproj ./
  RUN dotnet restore
  
  # Copy everything else and build
  COPY . ./
  RUN dotnet publish -c Release -o out
  
  # Build runtime image
  FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
  WORKDIR /app
  COPY --from=build-env /app/out .
  ENTRYPOINT [&quot;dotnet&quot;, &quot;CodeEffects.Rule.Angular.Demo.dll&quot;]
  </code></pre>