Generate pl types prior to building for production
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-23 10:39:59 +02:00
parent ec284177ee
commit 26363eb249

View File

@ -15,11 +15,13 @@ FROM base AS builder
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable RUN corepack enable
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
COPY . . COPY . .
ENV NODE_ENV=production ENV NODE_ENV=production
RUN pnp generate:types
RUN pnpm build RUN pnpm build
# Production: copy build artifacts # Production: copy build artifacts