Gatsby Docker screenshot

Gatsby Docker

Author Avatar Theme by Aripalo
Updated: 21 Feb 2018
186 Stars

Develop & Build GatsbyJS static sites within Docker.

Overview

The Gatsby Docker theme provides a way to develop and build GatsbyJS static sites within a Docker container. It eliminates the need to install Node, Gatsby, Webpack, and other tools on the host machine, making it a clutter-free solution. The theme offers easy setup with automatic GatsbyJS site initialization using the gatsby-starter-default template. It also provides a simple CLI API for development, staging, and building.

Features

  • Clutter-free host machine: No need to install Node, Gatsby, Webpack, etc on the host machine.
  • Easy setup: Automatic GatsbyJS site initialization with gatsby-starter-default.
  • Simple CLI API: Offers commands for development, staging, and building.
  • Recent NodeJS: Container based on NodeJS v9.5 running in Alpine Linux.
  • MIT-licensed: The theme is licensed under the MIT license.

Installation

To use the Gatsby Docker theme, follow these steps:

  1. Ensure you have Docker installed on your machine.
  2. Create a new GatsbyJS site in the desired directory:
docker run -it --rm -v $(pwd)/site:/site aripalo/gatsby-docker
  1. Add the generated site folder to your .gitignore file to exclude it from version control.

Summary

The Gatsby Docker theme provides an efficient solution for developing and building GatsbyJS static sites using Docker containers. It eliminates the need to install various tools on the host machine, making it a clutter-free option. With its easy setup and simple CLI API, it streamlines the development process for GatsbyJS sites. The theme also utilizes a recent version of NodeJS and is licensed under the MIT license.