Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 14918cc94f |
+8
-3
@@ -42,10 +42,15 @@ ENV VITE_TELEGRAM_BOT_ID=$VITE_TELEGRAM_BOT_ID \
|
|||||||
VITE_APP_VERSION=$VITE_APP_VERSION \
|
VITE_APP_VERSION=$VITE_APP_VERSION \
|
||||||
VITE_ADS_STUB=$VITE_ADS_STUB
|
VITE_ADS_STUB=$VITE_ADS_STUB
|
||||||
|
|
||||||
# Install with the lockfile first (the workspace file carries pnpm's build-script
|
# Install with the lockfile first, then build. Committed src/gen/ means no codegen here.
|
||||||
# approval for esbuild), then build. Committed src/gen/ means no codegen here.
|
# --ignore-scripts: the Vite build needs no dependency build script — esbuild's platform binary
|
||||||
|
# ships as an optional dependency (only its CLI-shim postinstall is skipped, which Vite does not use),
|
||||||
|
# and core-js-bundle's prebuilt file is read directly. It notably skips sharp's native build (a
|
||||||
|
# `pnpm android:assets` tool via @capacitor/assets, unused here), which would otherwise fail on this
|
||||||
|
# Alpine/musl stage with no prebuilt binary and no compiler. The workspace allowBuilds stay for local
|
||||||
|
# installs (where android:assets does need sharp built).
|
||||||
COPY ui/package.json ui/pnpm-lock.yaml ui/pnpm-workspace.yaml ./
|
COPY ui/package.json ui/pnpm-lock.yaml ui/pnpm-workspace.yaml ./
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||||
COPY ui ./
|
COPY ui ./
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user