Skip to content

Example configuration to run an angular app inside docker served by nginx:alpine

License

Notifications You must be signed in to change notification settings

tehw0lf/angular-docker-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploying an Angular application within nginx:alpine docker

Dockerizing the app

export TAG="YOUR_TAG"

docker build -t "$TAG" .

Publishing the app to ghcr.io

docker tag $(docker image ls | grep "$TAG" | awk '{print $3}') ghcr.io/USERNAME/YOUR_TAG:latest

docker push ghcr.io/USERNAME/YOUR_TAG:latest

Notes

Adapt the Dockerfile as needed to reflect the path to your built application (default: "dist/my-app/"). A custom nginx config is provided which requires no further configuration.

About

Example configuration to run an angular app inside docker served by nginx:alpine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published