From 8b05893eced0dc3a3d6cb764ea9c8a95db4ae1d9 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Thu, 26 Sep 2024 16:33:54 +0200 Subject: [PATCH] fixup! Ensure pnpm workspace file is available in viewer image --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 20fc0c4c3..ba1158e7a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,10 +2,10 @@ # TODO: can't use vanilla alpine version since python is needed for gql-codegen stuff. FROM node:20 AS builder-base WORKDIR /app -COPY . /app/ RUN corepack enable FROM builder-base AS builder-viewer +COPY pnpm-lock.yaml pnpm-workspace.yaml /app/ WORKDIR /app/viewer COPY viewer/package.json viewer/pnpm-lock.yaml viewer/.npmrc /app/viewer/ RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install @@ -18,6 +18,7 @@ FROM builder-base AS builder COPY package.json pnpm-lock.yaml /app/ RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install +COPY . /app/ COPY src /app/src COPY static /app/static COPY --from=builder-viewer /app/viewer/dist-web-component /app/viewer/dist-web-component