Revert "fix(ci):consolidate dashboard build workflow changes"
This reverts commit 58414f1035.
This commit is contained in:
@@ -48,7 +48,6 @@ FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-slim AS base-build
|
||||
|
||||
ENV COREPACK_INTEGRITY_KEYS=0
|
||||
|
||||
# Keep C++ build tools ONLY in the native build stage
|
||||
RUN rm -f /usr/local/bin/pnpm /usr/local/bin/pnpx && npm install -g pnpm@10.6.2 && apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
@@ -97,16 +96,20 @@ COPY apps/start ./apps/start
|
||||
COPY packages ./packages
|
||||
COPY tooling ./tooling
|
||||
|
||||
# Generate Prisma client and build the app natively
|
||||
# Generate Prisma client and build the app
|
||||
RUN pnpm --filter start run build
|
||||
|
||||
# PROD - Install only production dependencies
|
||||
FROM base AS prod
|
||||
|
||||
# FIX:
|
||||
# Removed `npm_config_build_from_source`, `python3`, `make`, `g++`, and `pnpm rebuild`.
|
||||
# This allows pnpm to instantly download pre-compiled AMD64 binaries instead of forcing
|
||||
# QEMU to cross-compile C++ code on your Raspberry Pi.
|
||||
ENV npm_config_build_from_source=true
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
make \
|
||||
g++ && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/package.json ./
|
||||
@@ -128,14 +131,16 @@ COPY --from=build /app/packages/integrations/package.json ./packages/integration
|
||||
COPY --from=build /app/packages/sdks/_info/package.json ./packages/sdks/_info/
|
||||
COPY --from=build /app/patches ./patches
|
||||
|
||||
# Install production dependencies only (fetches prebuilt binaries fast)
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --frozen-lockfile --prod && \
|
||||
pnpm rebuild && \
|
||||
pnpm store prune
|
||||
|
||||
# FINAL - Minimal runtime image
|
||||
FROM base AS runner
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV npm_config_build_from_source=true
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user