1
0
Fork 0

fix(docker): move rules to app dir, tweak layer order

This commit is contained in:
ssube 2019-06-25 08:39:25 -05:00
parent 7f5a44ed40
commit b6fe129709
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
FROM node:11-stretch
# copy config and rules, which change rarely
# copy config, which changes rarely
COPY docs/config-docker.yml /root/.salty-dog.yml
COPY rules /rules
# copy package and bundle, which change often
# copy package first, to invalidate other layers when version changes
COPY package.json /salty-dog/package.json
COPY rules /salty-dog/rules
COPY out/bundle.js /salty-dog/out/bundle.js
ENTRYPOINT [ "node", "/salty-dog/out/bundle.js" ]