-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
- Loading branch information
1 parent
da9cb36
commit aaa264e
Showing
11 changed files
with
25,199 additions
and
6,581 deletions.
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,2 @@ | ||
dist/ | ||
node_modules/ |
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,36 +1,31 @@ | ||
# Step 1: Builds and tests | ||
FROM node:14.21.3-bullseye AS build | ||
FROM node:16.20.2-bullseye AS build | ||
|
||
ARG kubeflowversion | ||
ARG commit | ||
|
||
ENV BUILD_VERSION=$kubeflowversion | ||
ENV BUILD_COMMIT=$commit | ||
ENV CHROME_BIN=/usr/bin/chromium | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
|
||
RUN apt update -qq && apt install -qq -y gnulib | ||
|
||
COPY . /centraldashboard | ||
WORKDIR /centraldashboard | ||
|
||
RUN BUILDARCH="$(dpkg --print-architecture)" && npm rebuild && \ | ||
if [ "$BUILDARCH" = "arm64" ] || \ | ||
[ "$BUILDARCH" = "armhf" ]; then \ | ||
export CFLAGS=-Wno-error && \ | ||
export CXXFLAGS=-Wno-error; \ | ||
fi && \ | ||
npm install && \ | ||
npm run build && \ | ||
npm prune --production | ||
RUN npm ci \ | ||
&& npm run build \ | ||
&& npm prune --production | ||
|
||
# Step 2: Packages assets for serving | ||
FROM node:14.21.3-alpine3.17 AS serve | ||
FROM node:16.20.2-alpine AS serve | ||
|
||
RUN apk add --no-cache tini | ||
|
||
USER node | ||
|
||
ENV NODE_ENV=production | ||
WORKDIR /app | ||
COPY --from=build /centraldashboard . | ||
WORKDIR /usr/src/app | ||
COPY --from=build --chown=node:node /centraldashboard . | ||
|
||
EXPOSE 8082 | ||
ENTRYPOINT ["npm", "start"] | ||
ENTRYPOINT ["/sbin/tini", "--" , "npm", "start"] |
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
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
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
Oops, something went wrong.