fix(build): remove push-db from Dockerfile
This commit is contained in:
parent
3621cf6ae2
commit
1d06466f16
1 changed files with 2 additions and 8 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -10,8 +10,7 @@ WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies based on the preferred package manager
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
|
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
|
||||||
RUN corepack enable pnpm
|
RUN corepack enable pnpm && pnpm i --frozen-lockfile
|
||||||
RUN pnpm i --frozen-lockfile
|
|
||||||
|
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
|
|
@ -28,12 +27,7 @@ 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
|
RUN corepack enable pnpm && pnpm run build
|
||||||
|
|
||||||
RUN mkdir -p data
|
|
||||||
RUN pnpm push-db
|
|
||||||
|
|
||||||
RUN 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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue