remove esbuild
This commit is contained in:
1 parent
559288fceb
commit
8bfffd540d
1 file changed
+6
-7
@@ -1,17 +1,16 @@
|
|||||||
# ---------------------
|
# ---------------------
|
||||||
# Frontend build stage
|
# 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
|
WORKDIR /app/client
|
||||||
|
|
||||||
COPY client/package.json ./
|
COPY client/package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm ci
|
||||||
|
|
||||||
RUN npm install esbuild@0.25.5 --build-from-source
|
|
||||||
|
|
||||||
COPY client ./
|
COPY client ./
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user