From 81066905d455534b41f36fe4124e901ac6d6e3a6 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 6 Nov 2022 10:11:42 -0700 Subject: [PATCH] Add container build --- container-build/cerc-watcher-mobymask/Dockerfile | 8 ++++++++ container-build/cerc-watcher-mobymask/build.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 container-build/cerc-watcher-mobymask/Dockerfile diff --git a/container-build/cerc-watcher-mobymask/Dockerfile b/container-build/cerc-watcher-mobymask/Dockerfile new file mode 100644 index 00000000..fd3e66de --- /dev/null +++ b/container-build/cerc-watcher-mobymask/Dockerfile @@ -0,0 +1,8 @@ +# TODO: move this into the cerc-io/mobymask-watcher repo +FROM node:16.17.1-alpine3.16 + +WORKDIR /app + +COPY . . + +RUN apk --update --no-cache add git && yarn && yarn build diff --git a/container-build/cerc-watcher-mobymask/build.sh b/container-build/cerc-watcher-mobymask/build.sh index e69de29b..74782c99 100755 --- a/container-build/cerc-watcher-mobymask/build.sh +++ b/container-build/cerc-watcher-mobymask/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Build cerc/watcher-mobymask + +# See: https://stackoverflow.com/a/246128/1701505 +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +docker build -t cerc/watcher-mobymask:local -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/mobymask-watcher