diff --git a/Dockerfile b/Dockerfile index 972fa50..746a34c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ FROM node:11-stretch COPY package.json /salty-dog/package.json -COPY out/ /salty-dog/out +COPY out/bundle.js /salty-dog/out/bundle.js WORKDIR /salty-dog -RUN npm link - ENV PATH "${PATH}:/usr/local/lib/node_modules" ENTRYPOINT [ "node", "/salty-dog/out/bundle.js" ] \ No newline at end of file diff --git a/README.md b/README.md index 6d58882..3b49605 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ This project is written in Typescript and requires `node` and `yarn` to build. ## Usage +To run with Docker: `docker run ssube/salty-dog:master` + +To run after `yarn global add` or `npm i -g`: `salty-dog` + +To run after building: `node out/bundle.js` + ### Validate `salty-dog` can validate JSON and YAML from files and streams, and emit it to a file or stream (with logs going