mlclaw 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +2 -19
- package/dist/mlclaw.mjs +1 -8
- package/package.json +1 -1
package/Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ ARG OPENCLAW_VERSION=2026.7.1
|
|
|
2
2
|
ARG OPENCLAW_BASE_IMAGE=ghcr.io/openclaw/openclaw:${OPENCLAW_VERSION}
|
|
3
3
|
ARG BROKERKIT_PLUGIN_VERSION=0.2.1
|
|
4
4
|
ARG BROKERKIT_VERSION=hf-broker/v0.1.0
|
|
5
|
-
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/osolmaz/mlclaw:0.3.
|
|
5
|
+
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/osolmaz/mlclaw:0.3.5-openclaw-2026.7.1
|
|
6
6
|
|
|
7
7
|
FROM golang:1.26.5-bookworm AS hf-broker-build
|
|
8
8
|
ARG BROKERKIT_VERSION
|
|
@@ -23,21 +23,6 @@ RUN git init /src \
|
|
|
23
23
|
--scope /out/hf-broker.scope.json \
|
|
24
24
|
--manifest /out/hf-broker.policy-manifest.json
|
|
25
25
|
|
|
26
|
-
FROM node:24-bookworm-slim AS brokerkit-plugin-build
|
|
27
|
-
ARG BROKERKIT_VERSION
|
|
28
|
-
RUN apt-get update \
|
|
29
|
-
&& apt-get install -y --no-install-recommends ca-certificates git \
|
|
30
|
-
&& rm -rf /var/lib/apt/lists/* \
|
|
31
|
-
&& git init /src \
|
|
32
|
-
&& git -C /src fetch --depth=1 https://github.com/osolmaz/brokerkit.git "refs/tags/$BROKERKIT_VERSION:refs/tags/$BROKERKIT_VERSION" \
|
|
33
|
-
&& git -C /src checkout --detach "$BROKERKIT_VERSION" \
|
|
34
|
-
&& test "$(git -C /src rev-parse "refs/tags/$BROKERKIT_VERSION^{commit}")" = "$(git -C /src rev-parse HEAD)"
|
|
35
|
-
WORKDIR /src
|
|
36
|
-
RUN corepack enable \
|
|
37
|
-
&& pnpm install --frozen-lockfile \
|
|
38
|
-
&& pnpm --filter openclaw-brokerkit build \
|
|
39
|
-
&& pnpm --filter openclaw-brokerkit pack --pack-destination /out
|
|
40
|
-
|
|
41
26
|
# Stage 1: build the state-sync bundle so the runtime image needs no dev deps.
|
|
42
27
|
FROM node:24-bookworm-slim AS sync-build
|
|
43
28
|
WORKDIR /build
|
|
@@ -69,10 +54,8 @@ RUN python3 -m pip install --break-system-packages --no-cache-dir \
|
|
|
69
54
|
"uv==0.11.28" \
|
|
70
55
|
"hf-discover==1.3.7"
|
|
71
56
|
ARG BROKERKIT_PLUGIN_VERSION
|
|
72
|
-
COPY --from=brokerkit-plugin-build /out/openclaw-brokerkit-${BROKERKIT_PLUGIN_VERSION}.tgz /tmp/openclaw-brokerkit.tgz
|
|
73
57
|
RUN npm install --omit=dev --omit=peer --no-audit --no-fund --prefix /opt/openclaw-plugins \
|
|
74
|
-
|
|
75
|
-
&& rm /tmp/openclaw-brokerkit.tgz \
|
|
58
|
+
"openclaw-brokerkit@${BROKERKIT_PLUGIN_VERSION}" \
|
|
76
59
|
&& test -f /opt/openclaw-plugins/node_modules/openclaw-brokerkit/openclaw.plugin.json
|
|
77
60
|
|
|
78
61
|
COPY --from=sync-build /build/dist/hf-state-sync.js /app/hf-state-sync.js
|
package/dist/mlclaw.mjs
CHANGED
|
@@ -14997,12 +14997,6 @@ RUN git init /src \\
|
|
|
14997
14997
|
--scope /out/hf-broker.scope.json \\
|
|
14998
14998
|
--manifest /out/hf-broker.policy-manifest.json
|
|
14999
14999
|
|
|
15000
|
-
FROM node:24-bookworm-slim AS brokerkit-plugin-build
|
|
15001
|
-
ARG BROKERKIT_VERSION
|
|
15002
|
-
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates git && rm -rf /var/lib/apt/lists/* && git init /src && git -C /src fetch --depth=1 https://github.com/osolmaz/brokerkit.git "refs/tags/$BROKERKIT_VERSION:refs/tags/$BROKERKIT_VERSION" && git -C /src checkout --detach "$BROKERKIT_VERSION" && test "$(git -C /src rev-parse "refs/tags/$BROKERKIT_VERSION^{commit}")" = "$(git -C /src rev-parse HEAD)"
|
|
15003
|
-
WORKDIR /src
|
|
15004
|
-
RUN corepack enable && pnpm install --frozen-lockfile && pnpm --filter openclaw-brokerkit build && pnpm --filter openclaw-brokerkit pack --pack-destination /out
|
|
15005
|
-
|
|
15006
15000
|
FROM ${OPENCLAW_BASE_IMAGE}
|
|
15007
15001
|
|
|
15008
15002
|
LABEL org.opencontainers.image.source="https://github.com/osolmaz/mlclaw"
|
|
@@ -15026,8 +15020,7 @@ RUN python3 -m pip install --break-system-packages --no-cache-dir \\
|
|
|
15026
15020
|
"uv==0.11.28" \\
|
|
15027
15021
|
"hf-discover==1.3.7"
|
|
15028
15022
|
ARG BROKERKIT_PLUGIN_VERSION
|
|
15029
|
-
|
|
15030
|
-
RUN npm install --omit=dev --omit=peer --no-audit --no-fund --prefix /opt/openclaw-plugins /tmp/openclaw-brokerkit.tgz && rm /tmp/openclaw-brokerkit.tgz && test -f /opt/openclaw-plugins/node_modules/openclaw-brokerkit/openclaw.plugin.json
|
|
15023
|
+
RUN npm install --omit=dev --omit=peer --no-audit --no-fund --prefix /opt/openclaw-plugins "openclaw-brokerkit@\${BROKERKIT_PLUGIN_VERSION}" && test -f /opt/openclaw-plugins/node_modules/openclaw-brokerkit/openclaw.plugin.json
|
|
15031
15024
|
|
|
15032
15025
|
COPY --chown=node:node runtime/hf-state-sync.js /app/hf-state-sync.js
|
|
15033
15026
|
COPY --chown=node:node runtime/hf-tooling-seed.js /app/hf-tooling-seed.js
|