From a3e92efc5ce669c32bad11b423c22c233096e114 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Tue, 1 Mar 2022 19:45:52 +0000 Subject: [PATCH] fix dockerfile.dev --- accounts/Dockerfile.dev | 8 ++++++++ admin-dashboard/Dockerfile.dev | 9 ++++++++- api-docs/Dockerfile.dev | 8 ++++++++ dashboard/Dockerfile.dev | 9 ++++++++- helm-chart/Dockerfile.dev | 8 ++++++++ home/Dockerfile.dev | 8 ++++++++ status-page/Dockerfile.dev | 8 ++++++++ 7 files changed, 56 insertions(+), 2 deletions(-) diff --git a/accounts/Dockerfile.dev b/accounts/Dockerfile.dev index d3e987562b..53fc3a8256 100644 --- a/accounts/Dockerfile.dev +++ b/accounts/Dockerfile.dev @@ -11,6 +11,14 @@ RUN apk update && apk add bash && apk add curl #Use bash shell by default SHELL ["/bin/bash", "-c"] +# Install common-server +RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + #SET ENV Variables ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true diff --git a/admin-dashboard/Dockerfile.dev b/admin-dashboard/Dockerfile.dev index 4c46dfd090..988622d048 100644 --- a/admin-dashboard/Dockerfile.dev +++ b/admin-dashboard/Dockerfile.dev @@ -15,8 +15,15 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++ #Use bash shell by default SHELL ["/bin/bash", "-c"] -# Install common-ui +# Install common-server RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + +# Install common-ui RUN mkdir /usr/src/common-ui WORKDIR /usr/src/common-ui COPY ./common-ui/package*.json /usr/src/common-ui/ diff --git a/api-docs/Dockerfile.dev b/api-docs/Dockerfile.dev index 55857a9035..e83ec31ebb 100644 --- a/api-docs/Dockerfile.dev +++ b/api-docs/Dockerfile.dev @@ -11,6 +11,14 @@ RUN apk update && apk add bash && apk add curl #Use bash shell by default SHELL ["/bin/bash", "-c"] +# Install common-server +RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + #SET ENV Variables ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true diff --git a/dashboard/Dockerfile.dev b/dashboard/Dockerfile.dev index 2b19f81a2b..4e46646b65 100644 --- a/dashboard/Dockerfile.dev +++ b/dashboard/Dockerfile.dev @@ -15,8 +15,15 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++ #Use bash shell by default SHELL ["/bin/bash", "-c"] -# Install common-ui +# Install common-server RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + +# Install common-ui RUN mkdir /usr/src/common-ui WORKDIR /usr/src/common-ui COPY ./common-ui/package*.json /usr/src/common-ui/ diff --git a/helm-chart/Dockerfile.dev b/helm-chart/Dockerfile.dev index f2d0646f73..3dda197ee3 100644 --- a/helm-chart/Dockerfile.dev +++ b/helm-chart/Dockerfile.dev @@ -11,6 +11,14 @@ RUN apk update && apk add bash && apk add curl #Use bash shell by default SHELL ["/bin/bash", "-c"] +# Install common-server +RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + #SET ENV Variables diff --git a/home/Dockerfile.dev b/home/Dockerfile.dev index aacb1bda1c..6e8bc9850a 100644 --- a/home/Dockerfile.dev +++ b/home/Dockerfile.dev @@ -11,6 +11,14 @@ RUN apk update && apk add bash && apk add curl #Use bash shell by default SHELL ["/bin/bash", "-c"] +# Install common-server +RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + #SET ENV Variables ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true diff --git a/status-page/Dockerfile.dev b/status-page/Dockerfile.dev index 7af541bcaa..3cc2899902 100644 --- a/status-page/Dockerfile.dev +++ b/status-page/Dockerfile.dev @@ -11,6 +11,14 @@ RUN apk update && apk add bash && apk add curl #Use bash shell by default SHELL ["/bin/bash", "-c"] +# Install common-server +RUN mkdir /usr/src +RUN mkdir /usr/src/common-server +WORKDIR /usr/src/common-server +COPY ./common-server/package*.json /usr/src/common-server/ +RUN npm ci +COPY ./common-server /usr/src/common-server + #SET ENV Variables ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true