Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
wip: add TARGETPLATFORM
Browse files Browse the repository at this point in the history
Signed-off-by: Chaz Leong <13462818+cleong14@users.noreply.github.com>
  • Loading branch information
cleong14 committed Jul 21, 2024
1 parent 91a49fc commit 817d263
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions angular-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions angular-ui/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
}
}
Expand Down

0 comments on commit 817d263

Please sign in to comment.