From cbfea0ac5a68185a15fcc1e30f343146449042f4 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 10 Nov 2022 11:42:56 +0100 Subject: [PATCH] feat(pinafore): import Containerfile --- pinafore/Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pinafore/Containerfile diff --git a/pinafore/Containerfile b/pinafore/Containerfile new file mode 100644 index 0000000..f8884ce --- /dev/null +++ b/pinafore/Containerfile @@ -0,0 +1,15 @@ +FROM reg.zknt.org/zknt/node + +ENV VERSION v2.2.1 + +RUN set -xe;\ + curl -LO https://github.com/nolanlawson/pinafore/archive/${VERSION}.tar.gz &&\ + mkdir /app &&\ + tar --strip-components=1 -C /app -xvzf ${VERSION}.tar.gz &&\ + cd /app &&\ + yarn --production --pure-lockfile &&\ + yarn build + +EXPOSE 8080 +WORKDIR /app +ENTRYPOINT PORT=8080 node server.js