Skip to content

Commit

Permalink
chore: bump Node.js in dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
  • Loading branch information
akurinnoy committed Aug 21, 2023
1 parent 66029aa commit 25940ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

FROM docker.io/node:16.16.0-alpine3.15 as builder
FROM docker.io/node:18-alpine3.17 as builder

RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*

Expand All @@ -35,7 +35,7 @@ RUN yarn install --network-timeout 3600000
COPY packages/ /dashboard/packages
RUN yarn build

FROM docker.io/node:16.16.0-alpine3.15
FROM docker.io/node:18-alpine3.17

ENV FRONTEND_LIB=/dashboard/packages/dashboard-frontend/lib/public
ENV BACKEND_LIB=/dashboard/packages/dashboard-backend/lib
Expand Down
8 changes: 4 additions & 4 deletions build/dockerfiles/brew.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

# https://registry.access.redhat.com/ubi8/nodejs-16
FROM ubi8/nodejs-16:1-118 as builder
# https://registry.access.redhat.com/ubi8/nodejs-18
FROM ubi8/nodejs-18:1-60 as builder
USER 0
RUN dnf -y -q update --exclude=unbound-libs
# https://docs.engineering.redhat.com/pages/viewpage.action?pageId=228017926#UpstreamSources%28Cachito,ContainerFirst%29-CachitoIntegrationforyarn
Expand Down Expand Up @@ -38,8 +38,8 @@ RUN yarn build
# cachito:yarn step 6: cleanup (required only if not using a builder stage)
# RUN rm -rf $REMOTE_SOURCES_DIR

# https://registry.access.redhat.com/ubi8/nodejs-16
FROM ubi8/nodejs-16:1-118
# https://registry.access.redhat.com/ubi8/nodejs-18
FROM ubi8/nodejs-18:1-60
USER 0

RUN \
Expand Down
8 changes: 4 additions & 4 deletions build/dockerfiles/rhel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

# https://registry.access.redhat.com/ubi8/nodejs-16
FROM registry.access.redhat.com/ubi8/nodejs-16:1-118 as builder
# https://registry.access.redhat.com/ubi8/nodejs-18
FROM registry.access.redhat.com/ubi8/nodejs-18:1-60 as builder
USER 0
RUN dnf -y -q update --exclude=unbound-libs

Expand All @@ -18,8 +18,8 @@ WORKDIR /dashboard/
RUN npm i -g yarn; yarn install
RUN yarn build

# https://registry.access.redhat.com/ubi8/nodejs-16
FROM registry.access.redhat.com/ubi8/nodejs-16:1-118
# https://registry.access.redhat.com/ubi8/nodejs-18
FROM registry.access.redhat.com/ubi8/nodejs-18:1-60
USER 0

RUN \
Expand Down
2 changes: 1 addition & 1 deletion build/dockerfiles/skaffold.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

FROM docker.io/node:16.16.0-alpine3.15
FROM docker.io/node:18-alpine3.17

ENV FRONTEND_LIB=../../packages/dashboard-frontend/lib/public
ENV BACKEND_LIB=../../packages/dashboard-backend/lib
Expand Down

0 comments on commit 25940ad

Please sign in to comment.