fix(build): oops

This commit is contained in:
Matej Stieranka 2025-06-24 15:21:24 +02:00
parent 3e22a9b912
commit 9a51dbc339

View file

@ -10,7 +10,8 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
RUN corepack enable pnpm && pnpm i --frozen-lockfile;
RUN corepack enable pnpm
RUN pnpm i --frozen-lockfile
# Rebuild the source code only when needed
@ -27,10 +28,12 @@ ENV NEXT_TELEMETRY_DISABLED=1
ARG DB_FILE_NAME
ENV DB_FILE_NAME=${DB_FILE_NAME}
RUN corepack enable pnpm
RUN mkdir -p data
RUN pnpm push-db
RUN corepack enable pnpm && pnpm run build;
RUN pnpm run build
# Production image, copy all the files and run next
FROM base AS runner