From 1f1fcbe67c98170314e1ab8c6e9ff3d426fd78e9 Mon Sep 17 00:00:00 2001 From: unclejack Date: Mon, 18 Sep 2017 15:06:50 +0300 Subject: [PATCH] scripts/netContain/Dockerfile: switch to alpine Signed-off-by: Cristian Staretu --- scripts/netContain/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/netContain/Dockerfile b/scripts/netContain/Dockerfile index 5bd715a15..bfa8efb2a 100644 --- a/scripts/netContain/Dockerfile +++ b/scripts/netContain/Dockerfile @@ -13,19 +13,18 @@ #limitations under the License. ## -# One Container for OVS / netplugin / netmaster +# One Container for OVS / netplugin / netmaster -FROM ubuntu:16.04 +FROM alpine:3.6 +LABEL maintainer "Cisco Contiv (https://contiv.github.io)" -# Make sure to Modify the Proxy Server values if required +# Make sure to Modify the Proxy Server values if required # ENV export http_proxy=http://proxy.localhost.com:8080 # ENV export https_proxy=https://proxy.localhost.com:8080 -RUN apt-get update \ - && apt-get install -y openvswitch-switch=2.5.2-0ubuntu0.16.04.1 \ - net-tools \ - iptables \ - && rm -rf /var/lib/apt/lists/* +RUN mkdir -p /etc/openvswitch \ + && echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories \ + && apk --no-cache add openvswitch=2.5.0-r0 iptables ca-certificates openssl curl bash COPY ./bin /contiv/bin/ COPY ./scripts /contiv/scripts/