{"id":18682770,"url":"https://github.com/chneau/docker-nginx-spa","last_synced_at":"2026-04-11T08:06:25.437Z","repository":{"id":221215797,"uuid":"753755025","full_name":"chneau/docker-nginx-spa","owner":"chneau","description":"Docker image used to serve a Single Page App with environment substitution","archived":false,"fork":false,"pushed_at":"2024-09-25T11:22:31.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T20:14:20.013Z","etag":null,"topics":["docker","environment","nginx","runtime","spa","substitution"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/chneau.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":"2024-02-06T18:23:37.000Z","updated_at":"2024-09-25T11:22:34.000Z","dependencies_parsed_at":"2024-12-27T22:55:47.598Z","dependency_job_id":"00684641-801f-42f7-9ac1-961c336329ce","html_url":"https://github.com/chneau/docker-nginx-spa","commit_stats":null,"previous_names":["chneau/docker-nginx-spa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chneau/docker-nginx-spa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fdocker-nginx-spa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fdocker-nginx-spa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fdocker-nginx-spa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fdocker-nginx-spa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chneau","download_url":"https://codeload.github.com/chneau/docker-nginx-spa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Fdocker-nginx-spa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["docker","environment","nginx","runtime","spa","substitution"],"created_at":"2024-11-07T10:12:48.005Z","updated_at":"2026-04-11T08:06:25.404Z","avatar_url":"https://github.com/chneau.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-nginx-spa\n\nDocker image used to serve a Single Page App with environment substitution.  \nThis image is built every day at 00:00 UTC.\n\n## Test it!\n\n```bash\ndocker run --rm -it -e _nginx=HACKED -p 7777:8080 ghcr.io/chneau/nginx-spa\n# open your browser at http://localhost:7777 to see all the nginx replaced with HACKED\n```\n\n## Typical usage\n\n```Dockerfile\nFROM oven/bun:1 as build\nENV VITE_CLIENT_ID=\"_VITE_CLIENT_ID\"\nENV VITE_CLIENT_SECRET=\"_VITE_CLIENT_SECRET\"\nENV VITE_REDIRECT_URI=\"_VITE_REDIRECT_URI\"\nWORKDIR /app\nCOPY package.json bun.lockb .\nRUN bun install --frozen-lockfile\nCOPY . .\nRUN bun x vite build\n\nFROM ghcr.io/chneau/nginx-spa\nCOPY --from=build /app/dist /usr/share/nginx/html\n```\n\n```bash\n# build it\ndocker build -t test .\n\n# run it with with your own env var\ndocker run --rm -it test -e __VITE_CLIENT_ID=123 -e __VITE_CLIENT_SECRET=456 -e __VITE_REDIRECT_URI=http://localhost:3000 -p 7777:8080 test\n\n# By default the prefix is _, you can change it with the PREFIX env var\n# Just add a _ to the value you want to replace in your SPA files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fdocker-nginx-spa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchneau%2Fdocker-nginx-spa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Fdocker-nginx-spa/lists"}