-
-
Save djm/a6a633df0de1bc7ed0034e15b407a41a to your computer and use it in GitHub Desktop.
Running `gatsby develop` on a container in development
This file contains hidden or 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