fix(build): first push DB, then build

This commit is contained in:
Matej Stieranka 2025-06-24 15:20:12 +02:00
parent b304c81647
commit 3e22a9b912

View file

@ -27,11 +27,11 @@ ENV NEXT_TELEMETRY_DISABLED=1
ARG DB_FILE_NAME
ENV DB_FILE_NAME=${DB_FILE_NAME}
RUN corepack enable pnpm && pnpm run build;
RUN mkdir -p data
RUN pnpm push-db
RUN corepack enable pnpm && pnpm run build;
# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app