This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update tools for custom UI image (#539)
- Loading branch information
Showing
2 changed files
with
53 additions
and
8 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,18 @@ | ||
FROM registry.access.redhat.com/ubi8/nginx-120 as app | ||
|
||
# persist these on the final image for later inspection | ||
ARG REACT_APP_BUILD_MODE | ||
ENV BUILD_MODE=$REACT_APP_BUILD_MODE | ||
ARG REACT_APP_GIT_SHA | ||
ENV GIT_SHA=$REACT_APP_GIT_SHA | ||
ARG REACT_APP_VERSION | ||
ENV VERSION=$REACT_APP_VERSION | ||
|
||
COPY ../deploy/deploy_config.sh /deploy/ | ||
COPY ../deploy/ui-deployment-template.yaml /deploy/ | ||
COPY ../deploy/nginx.conf /deploy/ | ||
COPY ../deploy/start.sh /deploy/ | ||
|
||
COPY --chown=1001:0 /build/ "${NGINX_APP_ROOT}/src/" | ||
|
||
CMD [ "/deploy/start.sh" ] |