diff --git a/angular-ui/Dockerfile b/angular-ui/Dockerfile index acb2ded..f18fafc 100644 --- a/angular-ui/Dockerfile +++ b/angular-ui/Dockerfile @@ -1,4 +1,6 @@ -FROM artifactory.cloud.cms.gov/docker/library/node:18-alpine3.18 AS builder +FROM --platform=$TARGETPLATFORM artifactory.cloud.cms.gov/docker/library/node:18-alpine3.18 AS builder + +ARG TARGETPLATFORM WORKDIR /app @@ -14,7 +16,9 @@ COPY . . RUN npm run build -FROM artifactory.cloud.cms.gov/docker/library/node:18-alpine3.18 +FROM --platform=$TARGETPLATFORM artifactory.cloud.cms.gov/docker/library/node:18-alpine3.18 + +ARG TARGETPLATFORM WORKDIR /app diff --git a/angular-ui/Jenkinsfile b/angular-ui/Jenkinsfile index 5ac43a3..eb2fad6 100644 --- a/angular-ui/Jenkinsfile +++ b/angular-ui/Jenkinsfile @@ -14,6 +14,9 @@ pipeline { - name: build image: artifactory.cloud.cms.gov/docker/library/node:18-alpine3.18 command: ['tail', '-f', '/dev/null'] + env: + - name: TARGETPLATFORM + value: ${params.platform} """ } }