Skip to content

Commit

Permalink
Dockerize (graphql-kit#33)
Browse files Browse the repository at this point in the history
* Initial dockerfile

* add docker option to README
  • Loading branch information
JamesKyburz authored and IvanGoncharov committed Nov 10, 2017
1 parent 0fc5924 commit dc4d49e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:8.8.1-alpine

MAINTAINER James Kyburz "[email protected]"

RUN apk --no-cache add --virtual native-deps \
git && \
npm install graphql-faker -g &&\
npm cache clean --force &&\
apk del native-deps

ENTRYPOINT ["node", "/usr/local/bin/graphql-faker"]
CMD []

EXPOSE 9002
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ or

yarn global add graphql-faker

or

docker run -ti -p 9002:9002 graphql-faker # arguments (--open won't work with docker)


## TL;DR

Expand Down

0 comments on commit dc4d49e

Please sign in to comment.