Skip to content

Commit

Permalink
installing yarn
Browse files Browse the repository at this point in the history
Signed-off-by: nmirasch <[email protected]>
  • Loading branch information
nmirasch committed Dec 17, 2024
1 parent 49790b8 commit 1b7c019
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .konflux/Containerfile.plugin
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
FROM registry.redhat.io/ubi8/nodejs-20-minimal:1-72 as builder
FROM registry.redhat.io/ubi9/nodejs-22:9.5-1734358400 as builder

USER root
RUN dnf upgrade

EXPOSE 8080
COPY ["package.json", "yarn.lock", "./"]
# Install Yarn
RUN npm install --global yarn

ADD . /usr/src/app
WORKDIR /usr/src/app
COPY package.json package-lock.json ./

RUN npm config set fetch-timeout 600000
RUN npm install --legacy-peer-deps
RUN npm run build
COPY [".", "."]

RUN yarn config set network-timeout 600000 -g
RUN yarn install --no-progress --non-interactive

RUN yarn build

FROM --platform=linux/amd64 registry.redhat.io/ubi8/httpd-24:1-345.1732637100
FROM --platform=linux/amd64 registry.redhat.io/rhel8/httpd-24

USER root
RUN chown -R 1001:0 /opt/app-root/src
USER 1001
RUN chmod g+rwx /opt/app-root/src

COPY --from=builder /usr/src/app/ssl.conf /etc/httpd/conf.d
COPY --from=builder /usr/src/app/dist /var/www/html/plugin
COPY --from=build /usr/src/app/ssl.conf /etc/httpd/conf.d
COPY --from=build /usr/src/app/dist /var/www/html/plugin

CMD run-httpd

Expand Down

0 comments on commit 1b7c019

Please sign in to comment.