The image is designed to behave like GitHub Pages, it utilizes the latest version of the Ruby gem "github-pages" which is maintained by GitHub. But it also includes some nice tools and utilities that aren't necessarily supported by GitHub pages, which runs in safe mode, with only a limited support for plugins.
The source is available at GitHub from lakruzz/gatsby
To build/serve a gatsby site change directory into the root of your gatsby site folder and then run gatsby serve as exemplified.
See the gatsby quickstart for more options.
Mac - using Docker-machine "default"
docker run -it --rm \
--pid=host \
-v /$(pwd)://app:rw \
--workdir //app \
-p 80:8000 lakruzz/gatsby \
gatsby serve --host 0.0.0.0 --port 8000
Now browse the IP of your docker machine ("default" used in the example):
open http://$(docker-machine ip default)
Linux
docker run -i -t --rm \
-v $(pwd):/app:rw \
--workdir /app \
-p 8000:8000 lakruzz/gatsby \
jekyll serve
Now browse port 8000 on you localhost:
xdg-open localhost:4000
Use the issues on the GitHub repo: lakruzz/gatsby
Content type
Image
Digest
Size
412.8 MB
Last updated
about 6 years ago
docker pull lakruzz/gatsby