Skip to content

Commit

Permalink
Update frontend ubi image (#362)
Browse files Browse the repository at this point in the history
* update ubi image

Signed-off-by: Mohammed Abdi <[email protected]>

* install full ubi dependencies in build stage

Signed-off-by: Mohammed Abdi <[email protected]>

* downgrade nodejs to 18 for consistency

Signed-off-by: Mohammed Abdi <[email protected]>

---------

Signed-off-by: Mohammed Abdi <[email protected]>
Co-authored-by: Mohammed Abdi <[email protected]>
  • Loading branch information
2 people authored and maia-iyer committed Mar 20, 2024
1 parent 97ad2d8 commit 0ed03b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/Dockerfile.frontend-container.ubi
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Build stage
FROM registry.access.redhat.com/ubi8/nodejs-18:latest AS build
FROM registry.access.redhat.com/ubi9/nodejs-18:latest AS build
WORKDIR /opt/app-root/src
COPY --chown=1001:0 frontend .
RUN npm install && \
npm run build

## Runtime stage
FROM registry.access.redhat.com/ubi8/nodejs-18-minimal:latest AS runtime
FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:latest AS runtime
WORKDIR /opt/app-root/src
COPY --from=build --chown=1001:0 /opt/app-root/src/build ./build
COPY --from=build --chown=1001:0 /opt/app-root/src/.env.prod .
Expand Down

0 comments on commit 0ed03b2

Please sign in to comment.