{"id":21089420,"url":"https://github.com/id1945/angular-docker","last_synced_at":"2026-04-18T04:02:26.011Z","repository":{"id":102416905,"uuid":"442433361","full_name":"id1945/angular-docker","owner":"id1945","description":"docker-basic, angular, dockerfile, docker-compose, docker-hub","archived":false,"fork":false,"pushed_at":"2021-12-29T04:44:55.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T12:01:57.506Z","etag":null,"topics":["angular","basic","docker","docker-compose","docker-hub","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/id1945/angular-demo","language":"HTML","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/id1945.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":"2021-12-28T10:50:37.000Z","updated_at":"2024-07-14T14:33:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcd57ca9-350d-4ca8-8f5a-ca0af29be9af","html_url":"https://github.com/id1945/angular-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/id1945/angular-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fangular-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fangular-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fangular-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fangular-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/id1945","download_url":"https://codeload.github.com/id1945/angular-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fangular-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","basic","docker","docker-compose","docker-hub","docker-image","dockerfile"],"created_at":"2024-11-19T21:28:50.540Z","updated_at":"2026-04-18T04:02:25.989Z","avatar_url":"https://github.com/id1945.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [1] Dockerfile local\n### [1.1] Dockerfile\n```yml\nFROM node:14-stretch-slim as build\nWORKDIR /app\nCOPY ./ /app\nRUN npm install \u0026\u0026 npm run build\n\nFROM nginx:latest\nCOPY --from=build /app/dist/angular-docker /usr/share/nginx/html\n```\n### [1.2] Virtual machine\n#### Create image\n```bash\ndocker build -t angular_build -f Dockerfile .\n```\n#### Run container\n```bash\ndocker run -d --name angular_host -p 8080:80 angular_build\n```\n```bash\ndocker ps -la\ndocker stop angular_host\ndocker start angular_host\ndocker rm angular_host\n```\n```utl\nTest: http://localhost:8080/\n```\n# [2] Dockerfile on docker-hub\n### [2.1] Push Dockerfile to docker-hub\n```bash\ndocker login\ndocker tag angular-demo:latest id1945/angular-demo\ndocker push id1945/angular-demo\n```\n```url\nCheck: https://hub.docker.com/r/id1945/angular-demo\n```\n### [2.2] Run container by docker-compose\n#### docker-compose.yml\n```yml\nversion: \"3.3\"\nservices:\n  web-angular:\n    image: id1945/angular-demo:latest\n    ports:\n      - \"8080:80\"\n```\n```bash\ndocker-compose up -d\n```\n```utl\nTest: http://localhost:8080/\n```\n# [3] Run docker-compose with ssh file\n#### deploy.ssh\n```yml\ndocker-compose stop\ndocker-compose rm -f\ndocker-compose pull\ndocker-compose up -d\n```\n#### Run deploy.ssh\n```bash\nchmod +x deploy.sh\n./deploy.sh\n```\n```utl\nTest: http://localhost:8080/\n```\n#### What?\n-d (Run in background)\nRefer: https://giai-ma.blogspot.com/2020/08/tim-hieu-docker-images-containers.html \n\n#### Author: DaiDH Tel: 0845882882\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fid1945%2Fangular-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fid1945%2Fangular-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fid1945%2Fangular-docker/lists"}