From bd3aa736e454c501b163b35c954db64b1795f87b Mon Sep 17 00:00:00 2001 From: camo-f Date: Thu, 31 Oct 2019 11:04:50 +0100 Subject: [PATCH] add: alpine dockerfile --- Dockerfile.alpine | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile.alpine diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..1317c9c --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,22 @@ +FROM node:11-alpine + +# copy config, which changes rarely +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/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" ] +CMD [ "--help" ] \ No newline at end of file