Skip to content

Commit 2764d4f

Browse files
committed
feat: use esbuild-loader, add push manifest command to makefile
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
1 parent cfd000c commit 2764d4f

6 files changed

Lines changed: 707 additions & 285 deletions

File tree

Dockerfile.mcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USER 0
77
ENV HUSKY=0
88
COPY web/package*.json web/
99
COPY Makefile Makefile
10-
RUN cd web && npm ci --legacy-peer-deps --omit=optional --ignore-scripts
10+
RUN cd web && npm ci --legacy-peer-deps --ignore-scripts
1111

1212
COPY web/ web/
1313
COPY config/ config/

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ PLUGIN_NAME ?=monitoring-plugin
55
IMAGE ?= quay.io/${ORG}/${PLUGIN_NAME}:${VERSION}
66
FEATURES ?=incidents,perses-dashboards,dev-config
77

8+
export NODE_OPTIONS?=--max_old_space_size=4096
9+
810
.PHONY: install-frontend
911
install-frontend:
1012
cd web && npm install
@@ -109,8 +111,11 @@ start-devspace-backend:
109111

110112
.PHONY: podman-cross-build
111113
podman-cross-build:
112-
podman manifest create ${IMAGE}
114+
podman manifest create -a ${IMAGE}
113115
podman build --platform ${PLATFORMS} --manifest ${IMAGE} -f Dockerfile.mcp
116+
117+
.PHONY: podman-cross-build-push
118+
podman-cross-build-push: podman-cross-build
114119
podman manifest push ${IMAGE}
115120

116121
.PHONY: test-translations

0 commit comments

Comments
 (0)