If I follow the documentation, I create a Dockerfile containing:
FROM gatsbyjs/gatsby:onbuild
RUN gatsby build
This will will output:
Sending build context to Docker daemon 198.1MB
Step 1/2 : FROM gatsbyjs/gatsby:onbuild
# Executing 1 build trigger
---> e5cc71f754ba
Step 2/2 : RUN gatsby build
---> Running in 18b3c4f0d471
/bin/sh: gatsby: not found
The command '/bin/sh -c gatsby build' returned a non-zero code: 127
what am I doing wrong? How to set up a correct Dockerfile for building?
If I follow the documentation, I create a Dockerfile containing:
This will will output:
what am I doing wrong? How to set up a correct Dockerfile for building?