fix(build): expose DB_FILE_NAME as arg

This commit is contained in:
Matej Stieranka 2025-06-24 15:13:59 +02:00
parent 233b5dbbe8
commit b304c81647

View file

@ -24,9 +24,11 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build. # Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ARG DB_FILE_NAME
ENV DB_FILE_NAME=${DB_FILE_NAME}
RUN corepack enable pnpm && pnpm run build; RUN corepack enable pnpm && pnpm run build;
ENV DB_FILE_NAME=file:data/data.db
RUN mkdir -p data RUN mkdir -p data
RUN pnpm push-db RUN pnpm push-db