From b304c816475faf6c9ec902ae069f92e5ae07203d Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 24 Jun 2025 15:13:59 +0200 Subject: [PATCH] fix(build): expose DB_FILE_NAME as arg --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c28217f..3e10841 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,9 +24,11 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. ENV NEXT_TELEMETRY_DISABLED=1 +ARG DB_FILE_NAME +ENV DB_FILE_NAME=${DB_FILE_NAME} + RUN corepack enable pnpm && pnpm run build; -ENV DB_FILE_NAME=file:data/data.db RUN mkdir -p data RUN pnpm push-db