-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add AI Disconnected OCP Containerfile
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 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
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,24 @@ | ||
FROM registry.ci.openshift.org/edge-infrastructure/nodejs-18-minimal:latest as ui-build | ||
USER root | ||
RUN microdnf install -y rsync git | ||
|
||
WORKDIR /app | ||
COPY --chown=1001:0 / /app | ||
RUN ls /app | ||
ENV NODE_OPTIONS='--max-old-space-size=8192' | ||
RUN git config --global --add safe.directory /app | ||
RUN npm install -g corepack@0.24.1 | ||
RUN yarn install --immutable && yarn build:all | ||
|
||
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 as proxy-build | ||
WORKDIR /app | ||
COPY apps/assisted-disconnected-ui/proxy /app | ||
USER 0 | ||
RUN go build | ||
|
||
FROM registry.ci.openshift.org/ocp/ubi-micro:9 | ||
COPY --from=ui-build /app/apps/assisted-disconnected-ui/build /app/proxy/dist | ||
COPY --from=proxy-build /app/assisted-disconnected-ui /app/proxy | ||
WORKDIR /app/proxy | ||
EXPOSE 8080 | ||
CMD ./assisted-disconnected-ui |
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