Skip to content

Commit 0eea366

Browse files
committed
build(docker): use local protokit-framework
1 parent bf06193 commit 0eea366

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@ FROM base AS builder
1212

1313
COPY 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+
1522
COPY --from=context-appchain / /app/appchain
1623
RUN --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

2332
COPY . .
2433
RUN pnpm run build

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ docker_image ?= zkn/agent:latest
44
image:
55
docker build \
66
--build-context context-appchain=../appchain \
7+
--build-context context-protokit=../protokit \
78
--file Dockerfile \
89
--tag $(docker_image) \
910
.

0 commit comments

Comments
 (0)