Skip to content

Instantly share code, notes, and snippets.

@icheko
Created August 19, 2022 07:15

Revisions

  1. icheko created this gist Aug 19, 2022.
    18 changes: 18 additions & 0 deletions medium-ubi8-chrome-Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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