From 1d06466f16e1cf142a84b3ea4bacf81941faa21e Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 24 Jun 2025 18:25:03 +0200 Subject: [PATCH] fix(build): remove push-db from Dockerfile --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ee34a6..c2de9b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,7 @@ 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 -RUN pnpm i --frozen-lockfile +RUN corepack enable pnpm && pnpm i --frozen-lockfile # Rebuild the source code only when needed @@ -28,12 +27,7 @@ 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 pnpm run build +RUN corepack enable pnpm && pnpm run build # Production image, copy all the files and run next FROM base AS runner