Closed TheRealVira closed 5 years ago
@TheRealVira - Without seeing your project, I am not following where the dependency on Node comes from. One thing I did noticed is that in your base
stage, you are installing node but I am not seeing any usage of this stage. What is the intended usage of this stage?
@MichaelSimons I am using Node based on the Angular dependency. Our project can be found inside the following repository: https://github.com/vira-software-solutions/vira-offical-website
You should also be able to build the angular project without the .Net Core dependencies, since it is a client side web-app.
@TheRealVira - I forked your repo and was able to get the image built and verify the app runs without ever encountering the error you're seeing. I made some slight tweaks to the Dockerfile you provided to target our MCR-hosted images and reference the "base" phase image from build in order to have npm available. You can see my changes at https://github.com/mthalman/vira-offical-website.
Closing as @mthalman provided a working solution.
Steps to reproduce the issue
I have set up an asp.net core web project - Angular - using dotnet:2.2; added "*.scss" support and added the following DOCKERFILE:
Expected behavior
In theory my web application should be build as expected - I have also run
npm rebuild node-sass
, but still, no success.Actual behavior
Output of
docker version
Output of
docker info