1
0
Fork 0
salty-dog/Dockerfile

22 lines
608 B
Docker
Raw Normal View History

2019-06-16 02:59:37 +00:00
FROM node:11-stretch
# copy config, which changes rarely
2019-06-17 14:11:26 +00:00
COPY docs/config-docker.yml /root/.salty-dog.yml
# copy package first, to invalidate other layers when version changes
2019-06-16 02:59:37 +00:00
COPY package.json /salty-dog/package.json
# copy chunks, largest to smallest (entrypoint)
2019-06-30 00:20:50 +00:00
COPY out/vendor.js /salty-dog/out/vendor.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
2019-06-16 02:59:37 +00:00
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
CMD [ "--help" ]