FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.12.4-5 LABEL maintainer="Jian QIU " ENV TZ="UTC" ENV GOPATH=/root/go RUN sed -i 's!v3.20/!v3.22/!g' /etc/apk/repositories RUN set -x \ && apk update \ && apk upgrade \ && apk add --no-cache bash haproxy keepalived iptables \ && apk add --no-cache --virtual .build-deps \ build-base \ make \ go \ git \ gcc \ libc-dev \ libgcc \ linux-headers RUN set -x \ && mkdir -p $GOPATH/src/github.com/yyyar $GOPATH/bin \ && cd $GOPATH/src/github.com/yyyar \ && git clone --depth 1 https://github.com/yyyar/gobetween.git \ && cd gobetween \ && make deps \ && make build \ && cp bin/gobetween /bin/gobetween \ && rm -fr $GOPATH \ && apk del .build-deps \ && rm -rf /var/cache/apk/*