Commit ff6dcfbd by luoqi

fix(docker): build @pac/utils too (not just @pac/types)

pac-web 用 @pac/utils/format,Dockerfile 之前只 build types,
导致 next build 时 module not found。改成 build packages/* 全部。
parent c0e31761
...@@ -28,7 +28,7 @@ CMD ["pnpm", "dev"] ...@@ -28,7 +28,7 @@ CMD ["pnpm", "dev"]
# === build === # === build ===
FROM deps AS build FROM deps AS build
COPY . . COPY . .
RUN pnpm --filter @pac/types build RUN pnpm --filter "./packages/*" build
WORKDIR /app/apps/pac-service WORKDIR /app/apps/pac-service
RUN pnpm prisma generate RUN pnpm prisma generate
RUN pnpm build RUN pnpm build
......
...@@ -26,7 +26,7 @@ FROM deps AS build ...@@ -26,7 +26,7 @@ FROM deps AS build
ARG NEXT_PUBLIC_API_BASE_URL ARG NEXT_PUBLIC_API_BASE_URL
ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL} ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
COPY . . COPY . .
RUN pnpm --filter @pac/types build RUN pnpm --filter "./packages/*" build
WORKDIR /app/apps/pac-web WORKDIR /app/apps/pac-web
RUN pnpm build RUN pnpm build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment