diff --git a/build/nodejs_server/Dockerfile b/build/nodejs_server/Dockerfile index 920f8f6f3e..88f9bc7198 100644 --- a/build/nodejs_server/Dockerfile +++ b/build/nodejs_server/Dockerfile @@ -25,10 +25,12 @@ ENV ENV=${ENV} WORKDIR /workspace -# Build web components dependency +# Build packages/web-components and packages/client dependencies COPY packages/. /workspace/packages/ RUN npm --prefix /workspace/packages/web-components install --omit=dev RUN npm --prefix /workspace/packages/web-components run build +RUN npm --prefix /workspace/packages/client install +RUN npm --prefix /workspace/packages/client run build # Install nodejs server dependencies COPY static/package.json /workspace/static/package.json diff --git a/build/web_compose/Dockerfile b/build/web_compose/Dockerfile index d3ff37cf56..cf31404140 100644 --- a/build/web_compose/Dockerfile +++ b/build/web_compose/Dockerfile @@ -81,6 +81,10 @@ COPY packages/web-components/package.json /workspace/packages/web-components/pac COPY packages/web-components/package-lock.json /workspace/packages/web-components/package-lock.json RUN npm --prefix /workspace/packages/web-components install --omit=dev +COPY packages/client/package.json /workspace/packages/client/package.json +COPY packages/client/package-lock.json /workspace/packages/client/package-lock.json +RUN npm --prefix /workspace/packages/client install + COPY static/package.json /workspace/static/package.json COPY static/package-lock.json /workspace/static/package-lock.json RUN npm --prefix /workspace/static install --omit=dev