Skip to content

Commit

Permalink
datacommonsorg/client build fixes in nodejs_server and web_compose do…
Browse files Browse the repository at this point in the history
…ckerfiles (#4007)
  • Loading branch information
dwnoble authored Mar 7, 2024
1 parent 8b91146 commit b818463
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/nodejs_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions build/web_compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b818463

Please sign in to comment.