Skip to content

Commit 507394f

Browse files
committed
fix: Use forge explicitely in dsigner dockerfile
1 parent 7892135 commit 507394f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dsigner/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ COPY ./blocklock-solidity/package-lock.json ./
1616
RUN npm install
1717

1818
COPY ./blocklock-solidity ./
19-
# forge needs git folder smh
20-
COPY ./.git ../.git
21-
# compile contracts
22-
RUN npm run build:forge
19+
RUN FOUNDRY_PROFILE=build forge install --no-git && FOUNDRY_PROFILE=build forge build
2320

2421
FROM sol_builder AS sol_randomness
2522
WORKDIR /app/randomness-solidity
@@ -28,10 +25,7 @@ COPY ./randomness-solidity/package-lock.json ./
2825
RUN npm install
2926

3027
COPY ./randomness-solidity ./
31-
# forge needs git folder smh
32-
COPY ./.git ../.git
33-
# compile contracts
34-
RUN npm run build:forge
28+
RUN FOUNDRY_PROFILE=build forge install --no-git && FOUNDRY_PROFILE=build forge build
3529

3630
# Base image for rust
3731
FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef

0 commit comments

Comments
 (0)