Created
October 13, 2017 00:30
-
-
Save mjackson/f7823d3a724e8b30aa8659e23c382019 to your computer and use it in GitHub Desktop.
Running `gatsby develop` on a container in development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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