1
0
Fork 0

fix(docker): only copy bundle into image

This commit is contained in:
ssube 2019-06-15 22:04:41 -05:00
parent 172efb92c2
commit db47b3e14b
2 changed files with 7 additions and 3 deletions

View File

@ -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" ]

View File

@ -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