{"id":17185551,"url":"https://github.com/jscheid/yarn-build-docker-test","last_synced_at":"2026-02-25T19:02:58.951Z","repository":{"id":136980260,"uuid":"335433603","full_name":"jscheid/yarn-build-docker-test","owner":"jscheid","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-02T22:06:41.000Z","size":596,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T09:05:21.641Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jscheid.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-02-02T21:54:50.000Z","updated_at":"2021-02-02T22:06:44.000Z","dependencies_parsed_at":"2023-03-22T12:17:13.368Z","dependency_job_id":null,"html_url":"https://github.com/jscheid/yarn-build-docker-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jscheid/yarn-build-docker-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fyarn-build-docker-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fyarn-build-docker-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fyarn-build-docker-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fyarn-build-docker-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jscheid","download_url":"https://codeload.github.com/jscheid/yarn-build-docker-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jscheid%2Fyarn-build-docker-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267814244,"owners_count":24148326,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-10-15T00:47:05.815Z","updated_at":"2025-10-25T20:05:30.324Z","avatar_url":"https://github.com/jscheid.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yarn workspaces + yarn.build + Docker caching\n\nThis is a (failing) test case for building a monorepo using [Yarn 2\nworkspaces](https://yarnpkg.com/features/workspaces) with\n[yarn.build](https://yarn.build/) in Docker, taking advantage of the\n[Docker build\ncache](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache).\n\nThis monorepo contains three packages: `packageA`, `packageB`, and\n`packageC`. `packageA` has no dependencies. `packageB` depends on\n`packageA`, and `packageC` depends on `packageB`.\n\nThe Dockerfile first adds all files that are needed for Yarn to\ninstall dependencies, and then runs `yarn` to do so.  It then first\nbuilds `packageA` which has no dependencies. Then it builds\n`packageB`, which depends on `packageA`, which has already been\nbuilt. Finally, it builds `packageC`.\n\nTo execute the Dockerfile run the following command:\n\n```\ndocker build .\n```\n\nThe build fails because it tries to build `packageB` when its files\n(other than `package.json`) have not been copied yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fyarn-build-docker-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjscheid%2Fyarn-build-docker-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjscheid%2Fyarn-build-docker-test/lists"}