Skip to content

Commit

Permalink
chore: save disk space when building
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jun 28, 2020
1 parent 2d369f3 commit 9d5294b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# No CentOS Upstream fix
CVE-2020-11080
8 changes: 4 additions & 4 deletions dist/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ RUN yum install dnf-plugins-core -y && \
checkpolicy selinux-policy-devel unbound unbound-devel gcc-c++ \
desktop-file-utils graphviz groff python3-sphinx -y
COPY build.sh /root/build.sh
RUN bash /root/build.sh
RUN mkdir /rpms/ && \
RUN bash /root/build.sh && \
mkdir /rpms/ && \
cp /ovs/rpm/rpmbuild/RPMS/${RPM_ARCH}/* /ovn/rpm/rpmbuild/RPMS/${RPM_ARCH}/* /rpms && \
cd /rpms && rm -f *debug* *docker* *vtep* *ipsec*
cd /rpms && rm -f *debug* *docker* *vtep* *ipsec* && \
rm -rf /ovs /ovn /jemalloc-5.2.1


FROM centos:8
RUN yum remove -y bind-export-libs && yum update -y && \
yum install -y \
gnutls \
firewalld-filesystem \
libpcap \
hostname ethtool \
Expand Down

0 comments on commit 9d5294b

Please sign in to comment.