- Start developing.
Build docker image
docker build -f Dockerfile.dev -t gatsby:5 .
- Run container (mount only src directory)
docker run -d \
-it \
-p 8000:8000 \
--name gatsby-dev \
--mount type=bind,source="$(pwd -W)"/src,target=/app/gatsby/src \
gatsby:5
- Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit src/pages/index.tsx
to see your site update in real-time!