I have set up an angular 4 app inside asp.net core. When I build it from VS, all is good and works.
Now I would like to use docker to create an image to run a container. The Dockerfile is like:
FROM microsoft/aspnetcore-build as build-env
WORKDIR /source
COPY . .
RUN dotnet restore
RUN dotnet publish -o /publish --configuration Release
FROM microsoft/aspnetcore:
WORKDIR /app
COPY --from=build-env /publish .
ENTRYPOINT ["dotnet", "MyApp.dll"]
When I run docker-compose up, I can see the website is running without angular. It seems I need to install npm or more stuff, however, I couldn't find a proper solution on who to configure dockerfile to build the asp.net core and angular 4.
Could anyone provide an example?
Thanks