diff --git a/Dockerfile b/Dockerfile index 31eb7055..e4fb8db3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,12 +15,12 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api -# 安装 curl -RUN apt-get update && apt-get install -y curl unzip && rm -rf /var/lib/apt/lists/* - FROM base AS api WORKDIR /app +# 安装 curl +RUN apt-get update && apt-get install -y curl unzip + COPY --from=build /prod/api /app COPY --from=build /app/.git /app/.git