fix: remove unfrozen pnpm install from builder stages
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m3s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m3s
This commit is contained in:
parent
091495c1db
commit
768ca24eb2
2 changed files with 9 additions and 4 deletions
|
|
@ -22,9 +22,12 @@ CMD ["pnpm", "--filter", "api", "dev"]
|
||||||
# 4. build
|
# 4. build
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
||||||
|
COPY apps/api/package.json ./apps/api/
|
||||||
|
COPY packages/shared/package.json ./packages/shared/
|
||||||
|
COPY packages/db/package.json ./packages/db/
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm install
|
|
||||||
RUN pnpm --filter shared build
|
RUN pnpm --filter shared build
|
||||||
RUN pnpm --filter db build
|
RUN pnpm --filter db build
|
||||||
RUN pnpm --filter api build
|
RUN pnpm --filter api build
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,11 @@ CMD ["pnpm", "--filter", "web", "dev", "--host"]
|
||||||
# 4. Build
|
# 4. Build
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
||||||
|
COPY apps/web/package.json ./apps/web/
|
||||||
|
COPY packages/shared/package.json ./packages/shared/
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm install
|
|
||||||
ARG VITE_API_URL
|
ARG VITE_API_URL
|
||||||
ENV VITE_API_URL=$VITE_API_URL
|
ENV VITE_API_URL=$VITE_API_URL
|
||||||
RUN pnpm --filter shared build
|
RUN pnpm --filter shared build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue