-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Dockerfile and fix instructions in README (#44)
- Remove deprecated MAINTAINER instruction - Use yarn for speedier installs - Install last to utilize layering - Document option to use custom file with docker
- Loading branch information
1 parent
1aa9a53
commit ad46c6e
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
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 [] | ||
WORKDIR /workdir | ||
|
||
EXPOSE 9002 | ||
|
||
RUN yarn global add graphql-faker && \ | ||
yarn cache clean --force |
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