-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI containerfile for portal javascript build (#3397)
* Add CI containerfile for portal NPM commands + makefile target * Update docs to reflect new envvar for makefile, including a reasonable default for local dev: NO_CACHE
- Loading branch information
1 parent
c38242f
commit c9b7d81
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG REGISTRY | ||
|
||
FROM ${REGISTRY}/ubi8/nodejs-16 AS portal-base | ||
WORKDIR /build/portal/v2 | ||
USER root | ||
|
||
FROM portal-base AS portal-build | ||
COPY /portal/v2/package*.json ./ | ||
RUN npm ci | ||
RUN npm audit --omit=dev | ||
COPY /portal/v2/ ./ | ||
RUN npm run lint | ||
RUN npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export LOCATION=eastus | ||
export ARO_IMAGE=arointsvc.azurecr.io/aro:latest | ||
export NO_CACHE=false | ||
|
||
. secrets/env |