remove esbuild
This commit is contained in:
1 parent
559288fceb
commit
8bfffd540d
1 file changed
+6
-7
@@ -1,17 +1,16 @@
|
||||
# ---------------------
|
||||
# Frontend build stage
|
||||
# ---------------------
|
||||
FROM node:20-slim AS frontend-build
|
||||
|
||||
|
||||
# Build on the host arch (BUILDPLATFORM) rather than under QEMU — the output is
|
||||
# pure JS so it's arch-independent, and this avoids the esbuild host/native
|
||||
# binary version mismatch under emulation.
|
||||
FROM --platform=$BUILDPLATFORM node:20-slim AS frontend-build
|
||||
|
||||
WORKDIR /app/client
|
||||
|
||||
COPY client/package.json ./
|
||||
COPY client/package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
RUN npm install esbuild@0.25.5 --build-from-source
|
||||
RUN npm ci
|
||||
|
||||
COPY client ./
|
||||
|
||||
|
||||
Reference in new issue
Block a user