fix(build): expose DB_FILE_NAME as arg
This commit is contained in:
parent
233b5dbbe8
commit
b304c81647
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue