Skip to content

Commit 95973a6

Browse files
chore: Suppress docker build warnings
1 parent d260e73 commit 95973a6

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
platforms: linux/amd64,linux/arm64
4848
tags: ${{ steps.meta_web.outputs.tags }}
4949
labels: ${{ steps.meta_web.outputs.labels }}
50+
build-args: |
51+
BUILDPLATFORM=linux/amd64
5052
5153
build-daemon:
5254
runs-on: ubuntu-latest
@@ -96,4 +98,5 @@ jobs:
9698
tags: ${{ steps.meta_daemon.outputs.tags }}
9799
labels: ${{ steps.meta_daemon.outputs.labels }}
98100
build-args: |
101+
BUILDPLATFORM=linux/amd64
99102
JAVA_RUNTIME=${{ matrix.java_version }}

dockerfile/daemon.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG EMBEDDED_JAVA_VERSION=21
2+
ARG BUILDPLATFORM=linux/amd64
23

3-
FROM --platform=amd64 node:lts AS builder
4+
FROM --platform=${BUILDPLATFORM} node:lts AS builder
45

56
WORKDIR /src
67
COPY . /src

dockerfile/web.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM --platform=amd64 node:lts AS builder
1+
ARG BUILDPLATFORM=linux/amd64
2+
FROM --platform=${BUILDPLATFORM} node:lts AS builder
23

34
WORKDIR /src
45
COPY . /src

0 commit comments

Comments
 (0)