Skip to content

Commit

Permalink
[YUNIKORN-964] upgrade image base to 1.21.4-alpine (#66)
Browse files Browse the repository at this point in the history
* [YUNIKORN-964] upgrade image base to 1.21.4-alpine

Fix vulnerabilities in the base image by moving to later version.

* additional node upgrades from angular

* downgrade node version

karma does not run on node v15 and later need to move back to node v14.
  • Loading branch information
wilfred-s authored Dec 6, 2021
1 parent b51e79f commit 67e4bbd
Show file tree
Hide file tree
Showing 3 changed files with 2,407 additions and 1,966 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set Node.js Environment
uses: actions/setup-node@v2
with:
node-version: 12.14
node-version: 14.18
- run: |
npm install -g @angular/cli > /dev/null
npm install karma
Expand All @@ -38,4 +38,4 @@ jobs:
run: ng build --prod

- name: Test Coverage
run: yarn test:coverage
run: yarn test:coverage
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# limitations under the License.

# State 1
FROM node:12.13.1-alpine as buildstage
FROM node:14.18-alpine3.14 as buildstage

WORKDIR /usr/uiapp

Expand All @@ -29,7 +29,7 @@ RUN yarn install
RUN yarn build:prod

# Stage 2
FROM nginx:1.18.0-alpine
FROM nginx:1.21.4-alpine

COPY --from=buildstage /usr/uiapp/dist/yunikorn-web /usr/share/nginx/html

Expand Down
Loading

0 comments on commit 67e4bbd

Please sign in to comment.