Sign inSign up

wowbro/gatsbyjs-docker

By wowbro

Updated over 2 years ago

Images to help build GatsbyJS and host it

Image
0

1.2K

wowbro/gatsbyjs-docker repository overview

Intro

There are two major tags in this repo.

  • latest
  • onbuild

wowbro/gatsbyjs-docker:onbuild is used to build GatsbyJS public.

And, wowbro/gatsbyjs-docker:latest is used to host GatsbyJS on Nginx.

How to

  1. create this dockerfile on root of GatsbyJS project directory.
FROM wowbro/gatsbyjs-docker:onbuild as build

FROM wowbro/gatsbyjs-docker:latest
COPY --from=build /app/public /pub
  1. build image
docker build -t myproject/website .
  1. run docker / try localhost:8080 on brower
docker run -p 8080:80 myproject/website

repo

https://github.com/Gatsby-Lee/gatsbyjs-docker

Tag summary

Content type

Image

Digest

sha256:5b10ec99f

Size

4.6 MB

Last updated

over 2 years ago

docker pull wowbro/gatsbyjs-docker