Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Docker image that builds and hosts a Gatsby site

License

NotificationsYou must be signed in to change notification settings

mfeltscher/gatsby-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 theDockerfile above at the root of your project:
FROM gatsbyjs/gatsby:onbuild
  1. Build your project's public assets withgatsby 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

  • Shell100.0%

[8]ページ先頭

©2009-2025 Movatter.jp