From d99accad41357e98d9c109fbb411f93f5d832f3d Mon Sep 17 00:00:00 2001 From: Bowei Du Date: Fri, 11 Nov 2016 13:56:19 -0800 Subject: [PATCH] Change dnsutils image to use alpine This reduces the size of the image considerably --- test/images/dnsutils/Dockerfile | 9 ++++----- test/images/dnsutils/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/test/images/dnsutils/Dockerfile b/test/images/dnsutils/Dockerfile index 75cd5c1c46..778cd4402c 100644 --- a/test/images/dnsutils/Dockerfile +++ b/test/images/dnsutils/Dockerfile @@ -12,9 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM debian:wheezy -MAINTAINER Tim Hockin "thockin@google.com" +FROM alpine +MAINTAINER Bowei Du "bowei@google.com" -RUN apt-get -q update && \ - apt-get install -y dnsutils && \ - apt-get clean +RUN apk update --no-cache +RUN apk add bind-tools diff --git a/test/images/dnsutils/Makefile b/test/images/dnsutils/Makefile index 101f55802c..f5e287f6e2 100644 --- a/test/images/dnsutils/Makefile +++ b/test/images/dnsutils/Makefile @@ -13,8 +13,8 @@ # limitations under the License. # This image does not tag -#TAG = -PREFIX = gcr.io/google_containers +TAG ?= +PREFIX ?= gcr.io/google_containers all: push