Skip to content

Instantly share code, notes, and snippets.

@icheko
Created August 19, 2022 07:15
Show Gist options
  • Save icheko/c9201cab4d19cc84c62ab611cf12878d to your computer and use it in GitHub Desktop.
Save icheko/c9201cab4d19cc84c62ab611cf12878d to your computer and use it in GitHub Desktop.
FROM registry.access.redhat.com/ubi8/nodejs-14:1
USER root
# Setup to download updates from RH
COPY ./rhsm-entitlement /etc/pki/entitlement
RUN rm /etc/rhsm-host
# Install Chrome
RUN dnf upgrade --refresh rpm glibc && \
curl https://dl.google.com/linux/linux_signing_key.pub -O && rpm --import linux_signing_key.pub && \
curl https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -O && rpm --checksig -v google-chrome-stable_current_x86_64.rpm && \
dnf install -y google-chrome-stable_current_x86_64.rpm && \
rm -rfv /etc/pki/entitlement && \
rm -fv google-chrome-stable_current_x86_64.rpm && \
rm -fv linux_signing_key.pub
USER 1001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment