Skip to content

Commit 537bb74

Browse files
authored
Merge pull request #9 from jacobcwright/claude/fix-docker-build-error-l9PfK
Update pnpm install command in Dockerfile - thanks @jacobcwright
2 parents f3d2f7d + 226fde8 commit 537bb74

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ WORKDIR /clawdbot
2424
ARG CLAWDBOT_GIT_REF=main
2525
RUN git clone --depth 1 --branch "${CLAWDBOT_GIT_REF}" https://github.com/clawdbot/clawdbot.git .
2626

27-
RUN pnpm install --frozen-lockfile
27+
# Patch: relax version requirements for packages that may reference unpublished versions.
28+
# Scope this narrowly to avoid surprising dependency mutations.
29+
RUN set -eux; \
30+
for f in \
31+
./extensions/memory-core/package.json \
32+
./extensions/googlechat/package.json \
33+
; do \
34+
if [ -f "$f" ]; then \
35+
sed -i -E 's/"clawdbot"[[:space:]]*:[[:space:]]*">=[^"]+"/"clawdbot": "*"/g' "$f"; \
36+
fi; \
37+
done
38+
39+
RUN pnpm install --no-frozen-lockfile
2840
RUN pnpm build
2941
ENV CLAWDBOT_PREFER_PNPM=1
3042
RUN pnpm ui:install && pnpm ui:build
@@ -54,5 +66,6 @@ RUN printf '%s\n' '#!/usr/bin/env bash' 'exec node /clawdbot/dist/entry.js "$@"'
5466

5567
COPY src ./src
5668

69+
ENV PORT=8080
5770
EXPOSE 8080
5871
CMD ["node", "src/server.js"]

0 commit comments

Comments
 (0)