Dockerfile 357 B

12345678910111213141516171819202122
  1. FROM node:16
  2. COPY package.json .
  3. RUN yarn global add gatsby-cli
  4. RUN yarn install
  5. #COPY gatsby-config.js .
  6. # Optionally, copy your .env file to the container filesystem
  7. #COPY .env .
  8. #WORKDIR /usr/src/app
  9. WORKDIR /workspace
  10. EXPOSE 8000
  11. CMD ["gatsby", "develop", "--verbose"]
  12. #CMD ["/bin/bash"]
  13. #CMD ["gatsby", "develop", "-H", "0.0.0.0","--verbose"]