Skip to content

Commit

Permalink
fix dockerfile for arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
toelke committed Jan 2, 2023
1 parent 92408c4 commit f5efef5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# This Dockerfile is used to build the image available on DockerHub
FROM centos:centos8 as build
FROM golang:1.18 as build

# Add everything
ADD . /usr/src/cni-route-override

ENV INSTALL_PKGS "git golang"
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/cni-route-override && \
RUN cd /usr/src/cni-route-override && \
./build_linux.sh

FROM alpine
Expand Down

0 comments on commit f5efef5

Please sign in to comment.