Skip to content

Commit

Permalink
fixup! Ensure pnpm workspace file is available in viewer image
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Sep 26, 2024
1 parent 1b45f1f commit 8b05893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8b05893

Please sign in to comment.