First of all, follow this best practice guide to create your angular application framework. Index.html should be placed in the root folder. I am not sure if the following steps will be followed if this is not the case.
To use nginx you can follow this little tutorial: Angular docker application with nginx
1.Create a Docker file in the root folder of your application (next to your index.html)
FROM nginx COPY ./ /usr/share/nginx/html EXPOSE 80
2.Run docker build -t my-angular-app . in the folder of your Docker file.
3. docker run -p 80:80 -d my-angular-app , and then you can access your application http: // localhost
adebasi
source share