Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 657 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 657 Bytes

gatsbyjs/gatsby

Docker image that builds hosts a Gatsby site

This image has two major tags:

  • latest - will serve your assets on production using up an nginx server

  • onbuild - builds your project and creates a new docker image

Usage

  1. Insert the Dockerfile above at the root of your project:
FROM gatsbyjs/gatsby:onbuild
  1. Build your project's public assets with gatsby build

  2. Build your project's docker image:

docker build -t myproject/website .
  1. Upload to the registry
docker push myproject/website
  1. Use it
docker run --rm myproject/website