Add container build

This commit is contained in:
David Boreham 2022-11-06 10:11:42 -07:00
parent f5f262cea3
commit 81066905d4
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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