fix(build): oops
This commit is contained in:
parent
3e22a9b912
commit
9a51dbc339
1 changed files with 5 additions and 2 deletions
|
|
@ -10,7 +10,8 @@ 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 && pnpm i --frozen-lockfile;
|
||||
RUN corepack enable pnpm
|
||||
RUN pnpm i --frozen-lockfile
|
||||
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
|
|
@ -27,10 +28,12 @@ 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 corepack enable pnpm && pnpm run build;
|
||||
RUN pnpm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM base AS runner
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue