From d0e8c9c62ed53ce782384b4ea7d9e14ae348e681 Mon Sep 17 00:00:00 2001 From: gallonyin Date: Sat, 30 Nov 2024 11:09:51 +0800 Subject: [PATCH] Fix: Sandbox Dockerfile (#3280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复打包异常,异常信息: Step 17/28 : COPY package.json pnpm-workspace.yaml /app When using COPY with more than one source file, the destination must be a directory and end with a / --- projects/sandbox/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/sandbox/Dockerfile b/projects/sandbox/Dockerfile index 480010af9..c1e6697f6 100644 --- a/projects/sandbox/Dockerfile +++ b/projects/sandbox/Dockerfile @@ -30,7 +30,7 @@ FROM node:20.14.0-alpine AS builder WORKDIR /app -COPY package.json pnpm-workspace.yaml /app +COPY package.json pnpm-workspace.yaml /app/ COPY --from=install /app/node_modules /app/node_modules COPY ./projects/sandbox /app/projects/sandbox COPY --from=install /app/projects/sandbox /app/projects/sandbox