fix(build): first push DB, then build
This commit is contained in:
parent
b304c81647
commit
3e22a9b912
1 changed files with 2 additions and 2 deletions
|
|
@ -27,11 +27,11 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ARG DB_FILE_NAME
|
ARG DB_FILE_NAME
|
||||||
ENV DB_FILE_NAME=${DB_FILE_NAME}
|
ENV DB_FILE_NAME=${DB_FILE_NAME}
|
||||||
|
|
||||||
RUN corepack enable pnpm && pnpm run build;
|
|
||||||
|
|
||||||
RUN mkdir -p data
|
RUN mkdir -p data
|
||||||
RUN pnpm push-db
|
RUN pnpm push-db
|
||||||
|
|
||||||
|
RUN corepack enable pnpm && pnpm run build;
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue