Skip to content
Snippets Groups Projects
Commit d5d843d7 authored by Christian Felder's avatar Christian Felder
Browse files

Dockerfile: reformat, yum/dnf, use update-minimal

parent fcbc4ef7
No related branches found
No related tags found
No related merge requests found
......@@ -5,20 +5,17 @@ WORKDIR /root
COPY openSUSE_Tools-repomd.xml.key /etc/yum.repos.d
RUN chmod 775 \
/root \
&& \
mkdir -m 775 -p /root/.config/osc/trusted-certs \
&& \
cd /etc/yum.repos.d/ && \
curl -LO https://download.opensuse.org/repositories/openSUSE:Tools/CentOS_8/openSUSE:Tools.repo && \
rpm --import openSUSE_Tools-repomd.xml.key && \
cd - \
&& \
yum update -y && yum install -y epel-release && yum install -y \
osc \
&& \
yum clean all -y
RUN chmod 775 /root \
&& mkdir -m 775 -p /root/.config/osc/trusted-certs \
&& pushd /etc/yum.repos.d/ \
&& curl -LO https://download.opensuse.org/repositories/openSUSE:Tools/CentOS_8/openSUSE:Tools.repo \
&& rpm --import openSUSE_Tools-repomd.xml.key \
&& popd \
&& dnf install -y epel-release \
&& dnf -y update-minimal --setopt=tsflags=nodocs \
--security --sec-severity=Important --sec-severity=Critical \
&& dnf -y install --setopt=tsflags=nodocs osc \
&& dnf clean all -y
COPY entrypoint.sh /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment