From db47b3e14b8d7cf257d2f76cf1e8e0c532aa5df2 Mon Sep 17 00:00:00 2001 From: ssube Date: Sat, 15 Jun 2019 22:04:41 -0500 Subject: [PATCH] fix(docker): only copy bundle into image --- Dockerfile | 4 +--- README.md | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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