1
0
Fork 0

fix(container): set up as cli tool within container

This commit is contained in:
ssube 2019-06-30 19:39:36 -05:00
parent 94e26ccb5c
commit ef2a9c9cf2
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 10 additions and 2 deletions

View File

@ -5,10 +5,18 @@ COPY docs/config-docker.yml /root/.salty-dog.yml
# copy package first, to invalidate other layers when version changes
COPY package.json /salty-dog/package.json
# copy chunks, largest to smallest (entrypoint)
COPY out/vendor.js /salty-dog/out/vendor.js
COPY out/index.js /salty-dog/out/index.js
COPY out/main.js /salty-dog/out/main.js
COPY out/index.js /salty-dog/out/index.js
# set up as global cli tool
WORKDIR /salty-dog
RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)"
COPY rules /salty-dog/rules
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
CMD [ "--help" ]