From c1f792de8a15b1cd822370a64a1295a722b59de3 Mon Sep 17 00:00:00 2001 From: ssube Date: Tue, 17 Sep 2019 18:56:23 -0500 Subject: [PATCH] feat: dockerfile for node packages --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a2708cc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:12-stretch +# alpine may be smaller, but comes with a 10-15% perf hit + +COPY package.json /app/package.json +COPY out/ /app/out/ + +WORKDIR /app + +RUN yarn install --production +RUN yarn global add file:$(pwd) +ENV PATH="${PATH}:$(yarn global bin)" + +ENTRYPOINT [ "node", "/app/out/index.js" ] +CMD [ "--help" ] \ No newline at end of file