From 26363eb24901894b9650a194202ea3e2a50b144c Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 23 Jun 2024 10:39:59 +0200 Subject: [PATCH] Generate pl types prior to building for production --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f12c31b..080b6b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,13 @@ FROM base AS builder ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable + COPY package.json pnpm-lock.yaml ./ RUN pnpm install --frozen-lockfile COPY . . ENV NODE_ENV=production +RUN pnp generate:types RUN pnpm build # Production: copy build artifacts