Sign inSign up

freaz/gatsby

By freaz

•Updated about 8 years ago

Docker Image to develop and server www.gatsbyjs.org sites

Image
0

1.9K

freaz/gatsby repository overview

⁠docker-gatsby

Docker Image to develop and server Gatsby⁠ sites.

⁠Usage

To setup your Gatsby project using this Docker image you need to create:

  1. Dockerfile
    FROM freaz/gatsby:latest
    
  2. docker-compose.yaml - meant for running app on prduction
    version: '3'
    services:
      web:
        build: .
      ports:
        - 80:80
    
  3. develop.yaml - for local development
    version: '3'
    services:
      web:
        command: develop --host 0.0.0.0 --port 80
        volumes:
          - .:/www
    

Then running application ready for production with:

$ docker-compose up

and for development with:

$ docker-compose -f docker-compose.yaml -f develop.yaml up

Tag summary

Content type

Image

Digest

Size

131.4 MB

Last updated

about 8 years ago

docker pull freaz/gatsby