{"id":23387337,"url":"https://github.com/theointech/wikidev-io","last_synced_at":"2025-08-21T20:12:13.920Z","repository":{"id":117269645,"uuid":"252097098","full_name":"TheoInTech/wikidev-io","owner":"TheoInTech","description":"Wiki for Software Developers of all levels","archived":false,"fork":false,"pushed_at":"2020-04-10T03:29:16.000Z","size":430,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T08:37:57.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TheoInTech.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}},"created_at":"2020-04-01T06:59:48.000Z","updated_at":"2022-07-10T02:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d939254d-23f3-4172-be91-0a9b9193ef33","html_url":"https://github.com/TheoInTech/wikidev-io","commit_stats":null,"previous_names":["0xth3o/wikidev-io","theindiehacker/wikidev-io","theointech/wikidev-io"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheoInTech%2Fwikidev-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheoInTech%2Fwikidev-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheoInTech%2Fwikidev-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheoInTech%2Fwikidev-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheoInTech","download_url":"https://codeload.github.com/TheoInTech/wikidev-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247843694,"owners_count":21005493,"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-12-22T01:15:39.829Z","updated_at":"2025-04-08T12:34:19.075Z","avatar_url":"https://github.com/TheoInTech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# With Docker\n\nThis example show how to set custom environment variables for your **docker application** at runtime.\n\nThe `dockerfile` is the simplest way to run Next.js app in docker, and the size of output image is `173MB`. However, for an even smaller build, you can do multi-stage builds with `dockerfile.multistage`. The size of output image is `85MB`.\n\nYou can check the [Example Dockerfile for your own Node.js project](https://github.com/mhart/alpine-node/tree/43ca9e4bc97af3b1f124d27a2cee002d5f7d1b32#example-dockerfile-for-your-own-nodejs-project) section in [mhart/alpine-node](https://github.com/mhart/alpine-node) for more details.\n\n## How to use\n\n### Using `create-next-app`\n\nExecute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpm init next-app --example with-docker with-docker-app\n# or\nyarn create next-app --example with-docker with-docker-app\n```\n\n### Download manually\n\nDownload the example:\n\n```bash\ncurl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-docker\ncd with-docker\n```\n\nBuild it with docker:\n\n```bash\n# build\ndocker build -t next-app .\n# or, use multi-stage builds to build a smaller docker image\ndocker build -t next-app -f ./Dockerfile.multistage .\n```\n\nAlternatively you can add these commands as scripts to your package.json and simply run\n\n`yarn build-docker`\nor\n`yarn build-docker-multistage`\n\nRun the docker image:\n\n```bash\ndocker run --rm -it \\\n  -p 3000:3000 \\\n  next-app\n```\n\nor use `yarn build-docker-multistage`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheointech%2Fwikidev-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheointech%2Fwikidev-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheointech%2Fwikidev-io/lists"}