File tree Expand file tree Collapse file tree 4 files changed +17
-9
lines changed
Expand file tree Collapse file tree 4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,20 @@ COPY .gitignore .gitignore
6262COPY --from=builder /app/out/json/ .
6363COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
6464
65- # Fetch dependencies to cache store, then install offline with dev deps
66- RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
65+ # Copy full directory structure before fetch to ensure all package.json files are available
6766COPY --from=builder /app/out/full/ .
6867COPY turbo.json turbo.json
68+
69+ # Fetch dependencies to cache store, then install offline with dev deps
70+ RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
6971RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false
7072
7173# Build only the admin package
7274RUN pnpm turbo run build --filter=admin
7375
7476# =========================================================================== #
7577
76- FROM nginx:1.27 -alpine AS production
78+ FROM nginx:1.29 -alpine AS production
7779
7880COPY apps/admin/nginx/nginx.conf /etc/nginx/nginx.conf
7981COPY --from=installer /app/apps/admin/build/client /usr/share/nginx/html/god-mode
Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ COPY .gitignore .gitignore
3434COPY --from=builder /app/out/json/ .
3535COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3636RUN corepack enable pnpm
37- RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
3837
39- # Build the project and its dependencies
38+ # Copy full directory structure before fetch to ensure all package.json files are available
4039COPY --from=builder /app/out/full/ .
4140COPY turbo.json turbo.json
41+
42+ # Fetch dependencies to cache store, then install offline with dev deps
43+ RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
4244RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store
4345
4446ENV TURBO_TELEMETRY_DISABLED=1
Original file line number Diff line number Diff line change @@ -63,10 +63,12 @@ COPY .gitignore .gitignore
6363COPY --from=builder /app/out/json/ .
6464COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
6565
66- # Fetch dependencies to cache store, then install offline with dev deps
67- RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
66+ # Copy full directory structure before fetch to ensure all package.json files are available
6867COPY --from=builder /app/out/full/ .
6968COPY turbo.json turbo.json
69+
70+ # Fetch dependencies to cache store, then install offline with dev deps
71+ RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
7072RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false
7173
7274# Build only the space package
Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ COPY .gitignore .gitignore
3434COPY --from=builder /app/out/json/ .
3535COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3636RUN corepack enable pnpm
37- RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
3837
39- # Build the project
38+ # Copy full directory structure before fetch to ensure all package.json files are available
4039COPY --from=builder /app/out/full/ .
4140COPY turbo.json turbo.json
41+
42+ # Fetch dependencies to cache store, then install offline with dev deps
43+ RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store
4244RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store
4345
4446ARG VITE_API_BASE_URL=""
You can’t perform that action at this time.
0 commit comments