Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Containerfile.acm.konflux
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc AS builder
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 AS builder

USER root
ENV NPM_CONFIG_NODEDIR=/usr
Expand All @@ -16,7 +16,7 @@ RUN cd frontend && npm run build:plugin:acm && npm cache clean --force
# Remove build-time dependencies before packaging
RUN cd backend && npm ci --omit=optional --only=production --unsafe-perm --ignore-scripts

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24

WORKDIR /app
ENV NODE_ENV production
Expand Down
4 changes: 2 additions & 2 deletions Containerfile.mce.konflux
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc AS builder
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 AS builder

USER root
ENV NPM_CONFIG_NODEDIR=/usr
Expand All @@ -16,7 +16,7 @@ RUN cd frontend && npm run build:plugin:mce
# Remove build-time dependencies before packaging
RUN cd backend && npm ci --omit=optional --only=production --unsafe-perm --ignore-scripts

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24

WORKDIR /app
ENV NODE_ENV production
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.mce.prow
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright Contributors to the Open Cluster Management project

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as dynamic-plugin
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as dynamic-plugin
WORKDIR /app/frontend
COPY ./frontend .
RUN npm ci --legacy-peer-deps --ignore-scripts
RUN npm run build:plugin:mce

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as backend
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as backend
WORKDIR /app/backend
# Copy only package.json and package-lock.json so that the docker layer cache only changes if those change
# This will cause the npm ci to only rerun if the package.json or package-lock.json changes
Expand All @@ -15,12 +15,12 @@ RUN npm ci --omit=optional --ignore-scripts
COPY ./backend .
RUN npm run build

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as production
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as production
WORKDIR /app/backend
COPY ./backend/package-lock.json ./backend/package.json ./
RUN npm ci --omit=optional --only=production --ignore-scripts

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24
WORKDIR /app
ENV NODE_ENV production
COPY --from=production /app/backend/node_modules ./node_modules
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.prow
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright Contributors to the Open Cluster Management project

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as dynamic-plugin
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as dynamic-plugin
WORKDIR /app/frontend
COPY ./frontend .
RUN npm ci --legacy-peer-deps --ignore-scripts
RUN npm run build:plugin:acm

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as backend
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as backend
WORKDIR /app/backend
# Copy only package.json and package-lock.json so that the docker layer cache only changes if those change
# This will cause the npm ci to only rerun if the package.json or package-lock.json changes
Expand All @@ -15,12 +15,12 @@ RUN npm ci --omit=optional --ignore-scripts
COPY ./backend .
RUN npm run build

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc as production
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24 as production
WORKDIR /app/backend
COPY ./backend/package-lock.json ./backend/package.json ./
RUN npm ci --omit=optional --only=production --ignore-scripts

FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:920a22bf794c1e3806b1279a26337ba02d18af7370df18045f5ffd5bf5d54dbc
FROM registry.redhat.io/ubi9/nodejs-24-minimal@sha256:db6b235ed5ff08db78a85979377ba4e5241d032b375c945b1b1746d7a7fd9e24
WORKDIR /app
ENV NODE_ENV production
COPY --from=production /app/backend/node_modules ./node_modules
Expand Down