From 076c0da300b58e5be2a55b61e7554641ed7a1762 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Thu, 13 Jun 2024 14:46:43 +0530 Subject: [PATCH] Exclude stacks folder in docker image --- .../container-build/cerc-watcher-v3/.dockerignore | 1 + .../container-build/cerc-watcher-v3/Dockerfile | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 stacks/stack-orchestrator/container-build/cerc-watcher-v3/.dockerignore create mode 100644 stacks/stack-orchestrator/container-build/cerc-watcher-v3/Dockerfile diff --git a/stacks/stack-orchestrator/container-build/cerc-watcher-v3/.dockerignore b/stacks/stack-orchestrator/container-build/cerc-watcher-v3/.dockerignore new file mode 100644 index 0000000..59da4af --- /dev/null +++ b/stacks/stack-orchestrator/container-build/cerc-watcher-v3/.dockerignore @@ -0,0 +1 @@ +stacks \ No newline at end of file diff --git a/stacks/stack-orchestrator/container-build/cerc-watcher-v3/Dockerfile b/stacks/stack-orchestrator/container-build/cerc-watcher-v3/Dockerfile new file mode 100644 index 0000000..9da5526 --- /dev/null +++ b/stacks/stack-orchestrator/container-build/cerc-watcher-v3/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1 +FROM node:18.17.1-alpine3.18 + +RUN apk --update --no-cache add git python3 alpine-sdk bash curl jq + +WORKDIR /app + +COPY . . + +RUN echo "Installing dependencies and building sv3-watcher-ts" && \ + yarn && yarn build