Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve developer workflow and documentation #355

Open
denkv opened this issue Jan 19, 2022 · 0 comments
Open

Improve developer workflow and documentation #355

denkv opened this issue Jan 19, 2022 · 0 comments

Comments

@denkv
Copy link
Contributor

denkv commented Jan 19, 2022

Currently it mostly says "start gatsby develop" which is suboptimal in many ways:

  • Where and how to get gatsby, which version?
  • When and whether to run npm install or alternatives?
  • Which version of node is required? (it actually failed to install dependencies on both older and newer versions)
  • The required version of node may be unavailable on my system.

Maybe there should be a container-based approach for running the development server and building. I am using the following Dockerfile (it does not run the development server, just performs the build):

FROM node:14
RUN npm install -g gatsby-cli
RUN gatsby telemetry --disable
ADD ./scripts/package* /app/scripts/
WORKDIR /app/scripts
RUN npm install
ADD . /app/
RUN gatsby build
WORKDIR /app/scripts/public
EXPOSE 8000
CMD ["python3", "-m", "http.server", "8000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant