Make sure that geoipupdate is installed in final build stage
authorMicah Anderson <micah@riseup.net>
Wed, 16 Oct 2019 04:34:54 +0000 (00:34 -0400)
committerMicah Anderson <micah@riseup.net>
Wed, 16 Oct 2019 04:34:54 +0000 (00:34 -0400)
Dockerfile

index 1f00c23..d60ce64 100644 (file)
@@ -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