{"id":18763742,"url":"https://github.com/inloop/cra-docker","last_synced_at":"2025-12-06T04:30:24.869Z","repository":{"id":77722182,"uuid":"144102279","full_name":"inloop/cra-docker","owner":"inloop","description":"Docker image for running Create React App distributions","archived":false,"fork":false,"pushed_at":"2019-09-19T11:53:37.000Z","size":6,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-29T05:26:25.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-08-09T04:51:13.000Z","updated_at":"2024-11-15T22:07:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"96f0a9fa-6377-4cbe-920c-9042321bf103","html_url":"https://github.com/inloop/cra-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fcra-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fcra-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fcra-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2Fcra-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inloop","download_url":"https://codeload.github.com/inloop/cra-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661866,"owners_count":19676411,"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":[],"created_at":"2024-11-07T18:27:18.037Z","updated_at":"2025-12-06T04:30:24.567Z","avatar_url":"https://github.com/inloop.png","language":"Dockerfile","readme":"# cra-docker\n\nCreate statically built Create React App applications docker images for easy deployment with environment variables support at runtime.\n\nThis project was created to solve known problem with CRA in favor of 12 factor apps.\nSee https://github.com/facebook/create-react-app/issues/2353\n\n## Usage\n\nAll you need to do is get the content of built app (`build` folder) inside docker image in `/app` folder.\n\nTo get this working firstly create `Dockerfile` in your project root with content:\n\n```\nFROM inloopx/cra-docker\n\nCOPY build /app\n```\n\nthen you can call:\n\n```\n# or npm run build\nyarn build\ndocker build -t my-new-app .\n```\n\nOnce the build is done, you should have your image ready. To verify it, run the image bind to 8080 port:\n\n```\ndocker run --rm -p 8080:80 my-new-app\n```\n\nNow if you open [http://localhost:8080](http://localhost:8080) You should see your app.\n\nYou can find more in [example](example) directory. Also if you use gitlab, don't miss the [pipeline configuration file example](example/.gitlab-ci.yml)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fcra-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finloop%2Fcra-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fcra-docker/lists"}