fix(docker): only copy bundle into image
This commit is contained in:
parent
172efb92c2
commit
db47b3e14b
|
@ -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" ]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue