Skip to content

Instantly share code, notes, and snippets.

@djm
Forked from mjackson/Dockerfile
Created October 13, 2017 06:12
Show Gist options
  • Save djm/a6a633df0de1bc7ed0034e15b407a41a to your computer and use it in GitHub Desktop.
Save djm/a6a633df0de1bc7ed0034e15b407a41a 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