From 3e22a9b9120d3be3368268a01a5f8f2a5c0610e3 Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 24 Jun 2025 15:20:12 +0200 Subject: [PATCH] fix(build): first push DB, then build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e10841..7415473 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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