Fix Docker build issue around golang.

This commit is contained in:
Tomofumi Hayashi
2018-12-04 18:20:22 +09:00
committed by dougbtv
parent 09503c3dd3
commit dd8492c44c

View File

@@ -4,7 +4,9 @@ FROM centos:centos7
ADD . /usr/src/multus-cni
ENV INSTALL_PKGS "git golang"
RUN yum install -y $INSTALL_PKGS && \
RUN rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO && \
curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo && \
yum install -y $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
cd /usr/src/multus-cni && \
./build && \