{"id":16199425,"url":"https://github.com/bbenzikry/dokku-monorepo-dockerfile","last_synced_at":"2025-07-17T07:02:43.192Z","repository":{"id":95864811,"uuid":"183282588","full_name":"bbenzikry/dokku-monorepo-dockerfile","owner":"bbenzikry","description":"Dokku plugin for monorepos w/ Dockerfiles","archived":false,"fork":false,"pushed_at":"2019-04-28T13:52:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T19:47:43.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbenzikry.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":"2019-04-24T18:10:56.000Z","updated_at":"2019-04-28T13:52:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ea34f6e-9a4d-4ca6-97ef-86ee883a63b0","html_url":"https://github.com/bbenzikry/dokku-monorepo-dockerfile","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/bbenzikry%2Fdokku-monorepo-dockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbenzikry%2Fdokku-monorepo-dockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbenzikry%2Fdokku-monorepo-dockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbenzikry%2Fdokku-monorepo-dockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbenzikry","download_url":"https://codeload.github.com/bbenzikry/dokku-monorepo-dockerfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247701565,"owners_count":20981964,"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-10-10T09:25:22.124Z","updated_at":"2025-04-07T17:42:50.910Z","avatar_url":"https://github.com/bbenzikry.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dokku Monorepo+Docker plugin\n\n## Installation\n\n```sh\ndokku plugin:install https://github.com/bbenzikry/dokku-monorepo-dockerfile\n```\n\n## Usage\n\n- Create a `.monorepo.dokku` file in your root folder\n\n```sh\n# .monorepo.dokku\nDOKKU_APP_NAME=DOCKER_NAME\n```\n\n- The plugin will rename a file called `DOCKER_NAME.Dockerfile` in the root directory so dokku picks it up\n\n```sh\n$ git push -f REMOTE_NAME HEAD:master\n=====\u003e Testing docker monorepo presence...\n=====\u003e Docker monorepo detected\n=====\u003e Building Dockerfile from DOCKER_NAME.Dockerfile\n-----\u003e Cleaning up...\n-----\u003e Building APP from dockerfile...\nremote: build context to Docker daemon\n...\n```\n\n- In case there's no definition present for the application, Dokku will fallback to default configuration\n\n```sh\n=====\u003e Docker monorepo detected\n=====\u003e The application APP is not defined in .monorepo.dokku\n-----\u003e Cleaning up...\n-----\u003e Building APP from herokuish...\n```\n\n### Managing different `.dockerignore` files\n\nAdd a `DOCKER_NAME.dockerignore` file in your root\n\n## Mix and match with buildpacks\n\nSee the [dokku-monorepo](https://github.com/notpushkin/dokku-monorepo) plugin\n\n## FAQ\n\n\u003e Dokku is using heroku buildpack detection for the app\n\nFrom the [Dokku documentation](https://github.com/dokku/dokku/blob/master/docs/deployment/methods/dockerfiles.md)\n\n- In case your app was previously deployed using buildpacks, make sure to run the following:\n\n```sh\n  dokku config:unset --no-restart APP_NAME DOKKU_PROXY_PORT_MAP\n```\n\n- Make sure the application does not have a `BUILDPACK_URL` environment variable set via the `dokku config:set` command or in a committed `.env` file.\n- Make sure the application does not have a `.buildpacks` file in the root of the repository.\n\n\u003e TCP workloads\n\n```sh\n\n# disable nginx proxying\nproxy:disable APP\n\n# Add host/container mapping\ndokku docker-options:add APP deploy \"-p PORT:PORT\"\n```\n\n\u003e `app.json` tasks\n\nSimply make sure `app.json`/`.scripts.dokku` is added to the docker `WORKDIR`\n\n## Issues\n\n\u003cimg src=\"https://i.imgflip.com/2zjvnu.jpg\" width=\"40%\" height=\"40%\" title=\"made at imgflip.com\"/\u003e\u003c/a\u003e\n\n\u003e Multi-stage caching doesn't work/sporadic errors on push\n\n```sh\n! [remote rejected] HASH -\u003e master (pre-receive hook declined)\nerror: failed to push some refs to 'REMOTE:APP'\nExited with code 1\n```\n\nSee:\n\n- https://github.com/dokku/dokku/issues/3116\n- https://github.com/dokku/dokku/issues/3474\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbenzikry%2Fdokku-monorepo-dockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbenzikry%2Fdokku-monorepo-dockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbenzikry%2Fdokku-monorepo-dockerfile/lists"}