From 3fbceb76fc69e27221b66350764462e9fbbe6a54 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 23 Jan 2023 01:22:04 +0100 Subject: [PATCH] feat(semaphore): import --- semaphore/Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 semaphore/Containerfile diff --git a/semaphore/Containerfile b/semaphore/Containerfile new file mode 100644 index 0000000..87969c1 --- /dev/null +++ b/semaphore/Containerfile @@ -0,0 +1,15 @@ +FROM reg.zknt.org/zknt/node:18 + +ENV VERSION 1.0.0 + +RUN set -xe;\ + curl -LO https://github.com/NickColley/semaphore/archive/refs/tags/${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