{"id":13452426,"url":"https://github.com/aripalo/gatsby-docker","last_synced_at":"2025-08-29T21:39:47.149Z","repository":{"id":29251947,"uuid":"120654957","full_name":"aripalo/gatsby-docker","owner":"aripalo","description":"Develop \u0026 Build GatsbyJS static sites within Docker.","archived":false,"fork":false,"pushed_at":"2020-01-14T14:38:03.000Z","size":20,"stargazers_count":187,"open_issues_count":10,"forks_count":53,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T04:12:17.167Z","etag":null,"topics":["containers","docker","gatsby","gatsbyjs","static-site","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/aripalo.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}},"created_at":"2018-02-07T18:34:08.000Z","updated_at":"2023-12-17T02:06:13.000Z","dependencies_parsed_at":"2022-08-07T14:15:48.016Z","dependency_job_id":null,"html_url":"https://github.com/aripalo/gatsby-docker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/aripalo/gatsby-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aripalo%2Fgatsby-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aripalo%2Fgatsby-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aripalo%2Fgatsby-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aripalo%2Fgatsby-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aripalo","download_url":"https://codeload.github.com/aripalo/gatsby-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aripalo%2Fgatsby-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272766945,"owners_count":24989408,"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-08-29T02:00:10.610Z","response_time":87,"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":["containers","docker","gatsby","gatsbyjs","static-site","static-site-generator"],"created_at":"2024-07-31T07:01:23.863Z","updated_at":"2025-08-29T21:39:47.127Z","avatar_url":"https://github.com/aripalo.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# gatsby-docker\nDevelop \u0026amp; Build [GatsbyJS](https://www.gatsbyjs.org/) static sites within a [Docker](https://www.docker.com/) container.\n\n- 🚮  **Clutter-free host machine**: No need to install Node/Gatsby/Webpack/etc on your host machine! Only Docker required (tested on `v17.12.0`).\n- 🏗  **Easy setup**: Automatic GatsbyJS site initializion with [`gatsby-starter-default`](http://gatsbyjs.github.io/gatsby-starter-default/) (unless already initialized)\n- 👍  **Simple CLI API**: [`develop`/`stage`/`build`](#usage)\n- 🆕  **Recent NodeJS**: Container based on [NodeJS `v9.5` running in Alpine Linux](https://github.com/nodejs/docker-node/blob/db3b27c8388136b5e529861d7c3fa12fd8328301/9/alpine/Dockerfile)\n- 📃  [MIT](https://github.com/aripalo/gatsby-docker/blob/master/LICENSE)-licensed\n\n\n\n## Setup\n\n**NOTE**: Your GatsbyJS site will be created into `$(pwd)/site` automatically.\n\nAdd these to your `.gitignore`:\n```\nsite/node_modules\nsite/public\nsite/.cache\n```\n\n\n## Usage\n\n### Develop\n```sh\ndocker run -it --rm -v $(pwd)/site:/site -p 8000:8000 aripalo/gatsby-docker develop\n```\n\n### Stage\n\nIn other words, build and serve:\n```sh\ndocker run -it --rm -v $(pwd)/site:/site -p 8000:8000 aripalo/gatsby-docker stage\n```\n\n### Build\n\nBuilds production ready site into `site/public`:\n```sh\ndocker run -it --rm -v $(pwd)/site:/site -p 8000:8000 aripalo/gatsby-docker build\n```\n\n### Run arbitary command inside the container\n```sh\ndocker run -it --rm -v $(pwd)/site:/site -p 8000:8000 aripalo/gatsby-docker \u003cYOUR-COMMAND-HERE\u003e\n```\n\nFor example to install a new NPM-module: `docker run -it --rm -v $(pwd)/site:/site aripalo/gatsby-docker yarn add gatsby-transformer-yaml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faripalo%2Fgatsby-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faripalo%2Fgatsby-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faripalo%2Fgatsby-docker/lists"}