{"id":19388122,"url":"https://github.com/zakimohammed/ng-docker-mark-4","last_synced_at":"2026-04-11T01:49:52.270Z","repository":{"id":181618685,"uuid":"666755608","full_name":"ZakiMohammed/ng-docker-mark-4","owner":"ZakiMohammed","description":"Brotli enabled project for Angular and Docker powered by Cirrus UI.","archived":false,"fork":false,"pushed_at":"2023-07-19T15:18:19.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T08:42:20.095Z","etag":null,"topics":["angular","brotli","cirrus-ui","docker","dockerfile","nginx","nginx-docker"],"latest_commit_sha":null,"homepage":"https://codeomelet.com/posts/brotli-dockerized-angular-app-with-nginx-ngdocker","language":"TypeScript","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/ZakiMohammed.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":"2023-07-15T13:21:25.000Z","updated_at":"2023-07-16T13:48:07.000Z","dependencies_parsed_at":"2024-11-10T10:12:02.280Z","dependency_job_id":"86eb60ff-21c2-4108-8361-5059859342bc","html_url":"https://github.com/ZakiMohammed/ng-docker-mark-4","commit_stats":null,"previous_names":["zakimohammed/ng-docker-mark-4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fng-docker-mark-4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fng-docker-mark-4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fng-docker-mark-4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZakiMohammed%2Fng-docker-mark-4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZakiMohammed","download_url":"https://codeload.github.com/ZakiMohammed/ng-docker-mark-4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240540549,"owners_count":19817791,"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","brotli","cirrus-ui","docker","dockerfile","nginx","nginx-docker"],"created_at":"2024-11-10T10:11:51.359Z","updated_at":"2026-04-11T01:49:47.227Z","avatar_url":"https://github.com/ZakiMohammed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brotli Dockerized Angular App | NgDocker - Mark 4\n\nCheck out the CodeOmelet blog post for this project.\n\nLink: https://codeomelet.com/posts/brotli-dockerized-angular-app-with-nginx-ngdocker\n___\n\nGzip project for Angular and Docker powered by Cirrus UI.\n\n## Build Docker Image and Run Docker Container\n\n```\n# build image\ndocker build -t ng-docker:mark-4 .\n\n# run container\ndocker run -p 3300:80 --name ng-docker-mark-4-container ng-docker:mark-4\n\n# list images\ndocker image ls\n\n# stop container\ndocker stop ng-docker-mark-4-container\n\n# remove container\ndocker rm ng-docker-mark-4-container\n```\n\n## nginx\\nginx.conf\n\n```\nserver {\n    brotli on;\n    brotli_static on;\n\n    listen 80;\n\n    root /usr/share/nginx/html;\n\n    location / {\n        index  index.html index.htm;\n        try_files $uri $uri/ /index.html;\n    }\n    \n    error_page   500 502 503 504  /50x.html;\n    \n    location = /50x.html {\n        root   /usr/share/nginx/html;\n    }\n}\n```\n\n## Dockerfile\n\n```\n# Build container\nFROM node:18-alpine AS builder\nWORKDIR /app\n\n# Make sure we got brotli\nRUN apk update\nRUN apk add --upgrade brotli\n\n# NPM install and build\nADD package.json .\nRUN npm install\nADD . .\nRUN npm run build:prod\n\nRUN cd /app/dist \u0026\u0026 find . -type f -exec brotli {} \\;\n\n# Actual runtime container\nFROM alpine\nRUN apk add brotli nginx nginx-mod-http-brotli\n\n# Minimal config\nCOPY nginx/nginx.conf /etc/nginx/http.d/default.conf\n\n# Actual data\nCOPY --from=builder /app/dist/ng-docker-mark-4 /usr/share/nginx/html\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\nEXPOSE 80\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Fng-docker-mark-4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakimohammed%2Fng-docker-mark-4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakimohammed%2Fng-docker-mark-4/lists"}