{"id":20033657,"url":"https://github.com/simon2k/landing","last_synced_at":"2026-03-05T02:31:44.403Z","repository":{"id":59460026,"uuid":"537373155","full_name":"simon2k/landing","owner":"simon2k","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-16T09:57:12.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T05:43:56.002Z","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/simon2k.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}},"created_at":"2022-09-16T08:35:19.000Z","updated_at":"2022-09-16T08:36:01.000Z","dependencies_parsed_at":"2022-09-16T20:00:19.834Z","dependency_job_id":null,"html_url":"https://github.com/simon2k/landing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simon2k/landing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon2k%2Flanding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon2k%2Flanding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon2k%2Flanding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon2k%2Flanding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simon2k","download_url":"https://codeload.github.com/simon2k/landing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon2k%2Flanding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30107207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"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-11-13T09:47:02.773Z","updated_at":"2026-03-05T02:31:44.386Z","avatar_url":"https://github.com/simon2k.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# With Docker\n\nThis examples shows how to use Docker with Next.js based on the [deployment documentation](https://nextjs.org/docs/deployment#docker-image). Additionally, it contains instructions for deploying to Google Cloud Run. However, you can use any container-based deployment host.\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-docker nextjs-docker\n# or\nyarn create next-app --example with-docker nextjs-docker\n# or\npnpm create next-app --example with-docker nextjs-docker\n```\n\n## Using Docker\n\n1. [Install Docker](https://docs.docker.com/get-docker/) on your machine.\n1. Build your container: `docker build -t nextjs-docker .`.\n1. Run your container: `docker run -p 3000:3000 nextjs-docker`.\n\nYou can view your images created with `docker images`.\n\n### In existing projects\n\nTo add support for Docker to an existing project, just copy the `Dockerfile` into the root of the project and add the following to the `next.config.js` file:\n\n```js\n// next.config.js\nmodule.exports = {\n  // ... rest of the configuration.\n  output: 'standalone',\n}\n```\n\nThis will build the project as a standalone app inside the Docker image.\n\n## Deploying to Google Cloud Run\n\n1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) so you can use `gcloud` on the command line.\n1. Run `gcloud auth login` to log in to your account.\n1. [Create a new project](https://cloud.google.com/run/docs/quickstarts/build-and-deploy) in Google Cloud Run (e.g. `nextjs-docker`). Ensure billing is turned on.\n1. Build your container image using Cloud Build: `gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld --project PROJECT-ID`. This will also enable Cloud Build for your project.\n1. Deploy to Cloud Run: `gcloud run deploy --image gcr.io/PROJECT-ID/helloworld --project PROJECT-ID --platform managed`. Choose a region of your choice.\n\n   - You will be prompted for the service name: press Enter to accept the default name, `helloworld`.\n   - You will be prompted for [region](https://cloud.google.com/run/docs/quickstarts/build-and-deploy#follow-cloud-run): select the region of your choice, for example `us-central1`.\n   - You will be prompted to **allow unauthenticated invocations**: respond `y`.\n\nOr click the button below, authorize the script, and select the project and region when prompted:\n\n[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run/?git_repo=https://github.com/vercel/next.js.git\u0026dir=examples/with-docker)\n\n## Running Locally\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon2k%2Flanding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon2k%2Flanding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon2k%2Flanding/lists"}