From 9d73f9ccf352f2973df58a85a6c450db23c90055 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 16 Oct 2019 00:34:54 -0400 Subject: Make sure that geoipupdate is installed in final build stage --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1f00c23..d60ce64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN mkdir $GOPATH && \ strip $GOPATH/bin/getmyip FROM debian:stable +RUN echo 'deb http://deb.debian.org/debian buster contrib' > /etc/apt/sources.list.d/contrib.list +RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends geoipupdate COPY --from=build /usr/share/doc/geoipupdate/examples/GeoIP.conf.default /etc/GeoIP.conf COPY --from=build /go/bin/getmyip /usr/local/bin/getmyip -- cgit v1.2.3