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 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