From b795e4205c0c86d747a6a59f609570c7c01d0244 Mon Sep 17 00:00:00 2001 From: Rob Wong Date: Mon, 21 Aug 2023 16:31:29 -0600 Subject: [PATCH] fix: install deps needed to build packages in docker --- demo-iota/js/deno/Dockerfile | 6 +++++- demo-iota/js/node/Dockerfile | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/demo-iota/js/deno/Dockerfile b/demo-iota/js/deno/Dockerfile index c53079d..3b1e113 100644 --- a/demo-iota/js/deno/Dockerfile +++ b/demo-iota/js/deno/Dockerfile @@ -1,4 +1,4 @@ -FROM denoland/deno:debian-1.36.1 +FROM denoland/deno:1.36.1 EXPOSE 3000 @@ -19,6 +19,10 @@ RUN npm --version ADD /js /js ADD /demo-iota/js/deno /demo-iota/js/deno +# install build dependencies used for each adapter +WORKDIR /js +RUN npm i + # build the packages for each adapter WORKDIR /js/packages/observe-sdk-datadog RUN npm run build diff --git a/demo-iota/js/node/Dockerfile b/demo-iota/js/node/Dockerfile index 023d5bb..6c9a375 100644 --- a/demo-iota/js/node/Dockerfile +++ b/demo-iota/js/node/Dockerfile @@ -5,6 +5,11 @@ EXPOSE 3000 ADD /js /js ADD /demo-iota/js/node /demo-iota/js/node +# install the global build dependencies used for each adapter +WORKDIR /js +RUN npm i + +# build the packages for each adapter WORKDIR /js/packages/observe-sdk-datadog RUN npm run build