{"id":20688719,"url":"https://github.com/astechedu/sample-dockerized-angular-app","last_synced_at":"2026-04-13T22:34:30.836Z","repository":{"id":157088687,"uuid":"583383592","full_name":"astechedu/sample-dockerized-angular-app","owner":"astechedu","description":"This is sample dockerized angular app.","archived":false,"fork":false,"pushed_at":"2022-12-30T12:54:02.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T01:49:15.870Z","etag":null,"topics":["angular","angularjs","docker","docker-angular","dockerfile","javascript"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astechedu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-29T16:05:40.000Z","updated_at":"2022-12-29T18:47:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7591df5-68e3-4a01-b628-40e9c8ee56b2","html_url":"https://github.com/astechedu/sample-dockerized-angular-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astechedu/sample-dockerized-angular-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astechedu%2Fsample-dockerized-angular-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astechedu%2Fsample-dockerized-angular-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astechedu%2Fsample-dockerized-angular-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astechedu%2Fsample-dockerized-angular-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astechedu","download_url":"https://codeload.github.com/astechedu/sample-dockerized-angular-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astechedu%2Fsample-dockerized-angular-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260082422,"owners_count":22956284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angularjs","docker","docker-angular","dockerfile","javascript"],"created_at":"2024-11-16T23:06:43.292Z","updated_at":"2026-04-13T22:34:25.603Z","avatar_url":"https://github.com/astechedu.png","language":"Dockerfile","readme":"# Dockerized Angular\n\n\n\n#Use official node image as the base image\n\n\tFROM node:latest as build\n\n#Set the working directory\n\n\tWORKDIR /usr/local/app\n\n#Add the source code to app\n\n\tCOPY ./ /usr/local/app/\n\n#Install all the dependencies\n\n\tRUN npm install\n\n#Generate the build of the application\n\n\tRUN npm run build\n\n\n#Stage 2: Serve app with nginx server\n\n#Use official nginx image as the base image\n\n\tFROM nginx:latest\n\n#Copy the build output to replace the default nginx contents.\n\n\tCOPY --from=build /usr/local/app/dist/dockerangular01 /usr/share/nginx/html\n\n#Expose port 80\n\n\tEXPOSE 80\n\t\n\n\n\n\n\n\n----- X -----\n\n\n\n\n#Building image\n\n\tdocker build . -t dockerized_angular\n\n#Running container\n\n\tdocker run --name angular-app -p 8080:80 -d dockerized_angular\n\n#On Browser\n\n\thttp://localhost:8080\n\n# Angular\n\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.4.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastechedu%2Fsample-dockerized-angular-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastechedu%2Fsample-dockerized-angular-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastechedu%2Fsample-dockerized-angular-app/lists"}