I have a solution with 2 projects :
- angular app
- webapi asp core app
Angular app docker file :
FROM node:10
WORKDIR ClientApp
COPY package.json .
RUN npm install
COPY . .
EXPOSE 4200
CMD npm start
My docker compose :
services:
webapplication1:
image: ${DOCKER_REGISTRY-}webapplication1
build:
context: .
dockerfile: WebApplication1/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "8050:80"
webapplication7:
build:
context: ./WebApplication7/ClientApp
dockerfile: ./WebApplication7/Dockerfile
ports:
- 4200:4200
I’m trying to use docker compose to dockerize both apps, which works fine with docker-compose up command
the issue is that I cannot use visual studio build-in debugger because my angular image does not depend on dotnet. Therefore, I get message that debug target is not valid or debugger cannot find a Program class.
Documentation/tutorials are so rare on this topic but even though I managed to find this tutorial, I’ve found out that there are some missing steps.
I also tried to ignore the build of the angular project but it did not work either.
Can someone please provide some help ? thank you.
Source: Docker Questions