From 12ceeeb24c30962f349bf147712da1bd85e33b04 Mon Sep 17 00:00:00 2001 From: indraraj Date: Wed, 20 Nov 2024 20:26:59 +0530 Subject: [PATCH] DBZ-8435: Fix user permission issue and platfrom issue while running the UI build --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8d9648d4..839b9f8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ # FROM node:18-alpine AS builder -FROM registry.access.redhat.com/ubi9/nodejs-20 AS builder +FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9/nodejs-20 AS builder +USER root +RUN mkdir -p /app && chown 1001:1001 /app +USER 1001 RUN npm install -g yarn ARG BACKEND_URL=http://localhost:8080