Skip to content

mfeltscher/gatsby-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Docker image that builds and hosts a Gatsby site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%