mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-28 20:39:35 +00:00
Use native build platform for node-builder stage
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
d4ddc0d555
commit
df1d3fe887
2 changed files with 4 additions and 2 deletions
|
|
@ -3,7 +3,8 @@ ARG PHP_VERSION=8.4
|
|||
ARG NODE_VERSION=22
|
||||
|
||||
# Node.js build stage for building frontend assets
|
||||
FROM node:${NODE_VERSION}-bookworm-slim AS node-builder
|
||||
# Use native platform for build stage as it's platform-independent
|
||||
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-bookworm-slim AS node-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
ARG NODE_VERSION=22
|
||||
|
||||
# Node.js build stage for building frontend assets
|
||||
FROM node:${NODE_VERSION}-bookworm-slim AS node-builder
|
||||
# Use native platform for build stage as it's platform-independent
|
||||
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-bookworm-slim AS node-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue