Skip to content

Instantly share code, notes, and snippets.

@mjackson
Created October 13, 2017 00:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mjackson/f7823d3a724e8b30aa8659e23c382019 to your computer and use it in GitHub Desktop.
Save mjackson/f7823d3a724e8b30aa8659e23c382019 to your computer and use it in GitHub Desktop.
Running `gatsby develop` on a container in development
FROM node:8
WORKDIR /home/node/app
ADD https://github.com/Yelp/dumb-init/releases/download/v1.1.1/dumb-init_1.1.1_amd64 /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
COPY package.json yarn.lock ./
RUN yarn --pure-lockfile
COPY . .
EXPOSE 5000
CMD ["dumb-init", "./node_modules/.bin/gatsby", "develop", "-H", "0.0.0.0", "-p", "5000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment