From b6fe129709a74d5e4d019205aeaf82aad71d196c Mon Sep 17 00:00:00 2001 From: ssube Date: Tue, 25 Jun 2019 08:39:25 -0500 Subject: [PATCH] fix(docker): move rules to app dir, tweak layer order --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ee8cff..adb1462 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file