Skip to content

Commit ada3722

Browse files
committed
fix: build workspace dependencies before web-wallet
1 parent 0b2ecfe commit ada3722

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Dockerfile.web-wallet

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ RUN corepack enable && yarn install
1717
# Copy source code
1818
COPY packages/web-wallet ./packages/web-wallet
1919
COPY packages/snap-utils ./packages/snap-utils
20+
COPY packages/hathor-rpc-handler ./packages/hathor-rpc-handler
2021

21-
# Build the application
22+
# Build snap-utils first (web-wallet depends on it)
23+
WORKDIR /app/packages/snap-utils
24+
RUN yarn build
25+
26+
# Build hathor-rpc-handler (snap-utils depends on it)
27+
WORKDIR /app/packages/hathor-rpc-handler
28+
RUN yarn build
29+
30+
# Build the web-wallet application
2231
WORKDIR /app/packages/web-wallet
2332
RUN yarn build
2433

0 commit comments

Comments
 (0)