File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,22 @@ FROM base AS builder
1212
1313COPY package.json pnpm-lock.yaml ./
1414
15+ COPY --from=context-protokit / /app/protokit
16+ RUN --mount=type=cache,id=npm,target=/root/.npm \
17+ cd /app/protokit \
18+ && npm set cache /root/.npm \
19+ && npm ci \
20+ && npm run build
21+
1522COPY --from=context-appchain / /app/appchain
1623RUN --mount=type=cache,id=pnpm,target=${PNPM_HOME}/store \
1724 cd /app/appchain/packages/chain \
1825 && pnpm install --frozen-lockfile \
1926 && pnpm build
2027
21- RUN --mount=type=cache,id=pnpm,target=${PNPM_HOME}/store pnpm install --frozen-lockfile
28+ RUN --mount=type=cache,id=pnpm,target=${PNPM_HOME}/store \
29+ cd /app/appchain-agent \
30+ && pnpm install --frozen-lockfile
2231
2332COPY . .
2433RUN pnpm run build
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ docker_image ?= zkn/agent:latest
44image :
55 docker build \
66 --build-context context-appchain=../appchain \
7+ --build-context context-protokit=../protokit \
78 --file Dockerfile \
89 --tag $(docker_image ) \
910 .
You can’t perform that action at this time.
0 commit comments