Spaces:
Running
Running
fix: use corepack for pnpm version and add plugin-sdk build step
Browse files- corepack enable uses correct pnpm version from packageManager field
- add @paperclipai/plugin-sdk build (matches official Paperclip Dockerfile)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Dockerfile +6 -7
Dockerfile
CHANGED
|
@@ -5,19 +5,18 @@ WORKDIR /build
|
|
| 5 |
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 9 |
|
| 10 |
# Clone Paperclip (depth=1 for speed, uses repo's default branch)
|
| 11 |
RUN git clone --depth=1 https://github.com/paperclipai/paperclip.git .
|
| 12 |
|
| 13 |
-
# Install pnpm
|
| 14 |
-
RUN npm install -g pnpm
|
| 15 |
-
|
| 16 |
-
# Install dependencies
|
| 17 |
RUN pnpm install
|
| 18 |
|
| 19 |
-
# Build Paperclip (match official Dockerfile
|
| 20 |
RUN pnpm --filter @paperclipai/ui build
|
|
|
|
| 21 |
RUN pnpm --filter @paperclipai/server build
|
| 22 |
|
| 23 |
# Stage 2: Runtime
|
|
@@ -49,7 +48,7 @@ RUN pip install --no-cache-dir --break-system-packages huggingface_hub PyYAML
|
|
| 49 |
COPY --from=paperclip-builder /build /app/paperclip
|
| 50 |
|
| 51 |
# Ensure pnpm is available in runtime stage
|
| 52 |
-
RUN
|
| 53 |
|
| 54 |
# Copy orchestration files
|
| 55 |
COPY start.sh /app/
|
|
|
|
| 5 |
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 9 |
+
&& corepack enable
|
| 10 |
|
| 11 |
# Clone Paperclip (depth=1 for speed, uses repo's default branch)
|
| 12 |
RUN git clone --depth=1 https://github.com/paperclipai/paperclip.git .
|
| 13 |
|
| 14 |
+
# Install dependencies (corepack picks correct pnpm version from packageManager field)
|
|
|
|
|
|
|
|
|
|
| 15 |
RUN pnpm install
|
| 16 |
|
| 17 |
+
# Build Paperclip (match official Dockerfile order)
|
| 18 |
RUN pnpm --filter @paperclipai/ui build
|
| 19 |
+
RUN pnpm --filter @paperclipai/plugin-sdk build
|
| 20 |
RUN pnpm --filter @paperclipai/server build
|
| 21 |
|
| 22 |
# Stage 2: Runtime
|
|
|
|
| 48 |
COPY --from=paperclip-builder /build /app/paperclip
|
| 49 |
|
| 50 |
# Ensure pnpm is available in runtime stage
|
| 51 |
+
RUN corepack enable
|
| 52 |
|
| 53 |
# Copy orchestration files
|
| 54 |
COPY start.sh /app/
|