This repository was archived by the owner on Oct 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1313! tools /config /nextest.toml
1414! .git
1515
16+ # Allow contract related code
17+ ! contracts /contracts /** /*
18+ ! contracts /hardhat.config.ts
19+ ! contracts /package * .json
20+ ! contracts /scripts /** /*
21+ ! contracts /tsconfig.json
22+ ! contracts /typechain-types /** /*
23+
1624! LICENSE
Original file line number Diff line number Diff line change 11ARG RUSTUP_TOOLCHAIN=stable
2+
3+ FROM node:18.15.0-slim as topos-contracts
4+
5+ WORKDIR /usr/src/app
6+
7+ COPY ./contracts/package*.json .
8+ RUN npm install
9+
10+ COPY ./contracts .
11+
12+ RUN npm run build
13+
214FROM --platform=${BUILDPLATFORM:-linux/amd64} ghcr.io/topos-protocol/rust_builder:bullseye-${RUSTUP_TOOLCHAIN} AS base
315
416ARG FEATURES
@@ -13,6 +25,9 @@ WORKDIR /usr/src/app
1325
1426FROM --platform=${BUILDPLATFORM:-linux/amd64} base AS build
1527COPY . .
28+
29+ COPY --from=topos-contracts /usr/src/app/artifacts ./contracts/artifacts
30+
1631RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
1732 --mount=type=cache,id=sccache,target=/root/.cache/sccache \
1833 cargo build --release --no-default-features --features=${FEATURES} \
You can’t perform that action at this time.
0 commit comments