Skip to content

Commit

Permalink
fix: json-schema, minimist and unscore CVES
Browse files Browse the repository at this point in the history
  • Loading branch information
rohank07 committed Oct 11, 2022
1 parent 1f8846d commit e6045e8
Show file tree
Hide file tree
Showing 13 changed files with 102,689 additions and 44,052 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-centraldashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: component/centraldashboard
on:
push:
branches:
- stc-master
- feature-1.6
- rohan-test
paths:
- components/centraldashboard/**

pull_request:
types:
- 'opened'
# Environment variables available to all jobs and steps in this workflow
env:
REGISTRY_NAME: k8scc01covidacr
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ The Kubeflow community is organized into working groups (WGs) with associated re

## Get Involved
Please refer to the [Community](https://www.kubeflow.org/docs/about/community/) page.

33 changes: 20 additions & 13 deletions components/centraldashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Step 1: Builds and tests
FROM node:12.22.8-alpine AS build
# This is a long-lived tag, if there is a vulnerability
# sometimes a rebuild will set you on your way.
FROM node:16-alpine AS build

ARG kubeflowversion
ARG commit
Expand All @@ -13,11 +15,15 @@ RUN apk update && apk upgrade && \
echo @stable http://nl.alpinelinux.org/alpine/v3.15/community >> /etc/apk/repositories && \
echo @stable http://nl.alpinelinux.org/alpine/v3.15/main >> /etc/apk/repositories

RUN apk add --no-cache bash chromium@stable nss@stable \
freetype@stable \
harfbuzz@stable \
ttf-freefont@stable \
libstdc++@stable
RUN apk add --no-cache \
bash \
chromium \
nss \
freetype \
harfbuzz \
ttf-freefont \
libstdc++ \
git

RUN if [ "$(uname -m)" = "aarch64" ]; then \
apk update && apk upgrade && \
Expand All @@ -31,20 +37,21 @@ RUN npm rebuild && \
if [ "$(uname -m)" = "aarch64" ]; then \
export CFLAGS=-Wno-error && \
export CXXFLAGS=-Wno-error && \
npm install; \
npm install --legacy-peer-deps; \
else \
npm install; \
npm install --legacy-peer-deps; \
fi && \
npm test && \
npm run build && \
npm prune --production

# --legacy-peer-deps is required in the update to node16
# https://github.com/pugjs/pug-loader/issues/126#issuecomment-796517327
npm run build --legacy-peer-deps && \
npm prune --production --legacy-peer-deps
# Step 2: Packages assets for serving
FROM node:12.22.8-alpine AS serve
FROM node:16-alpine AS serve

ENV NODE_ENV=production
WORKDIR /app
COPY --from=build /centraldashboard .

EXPOSE 8082
ENTRYPOINT ["npm", "start"]
ENTRYPOINT ["npm", "start"]
Loading

0 comments on commit e6045e8

Please sign in to comment.