echoip/Dockerfile
2014-12-22 16:53:41 +01:00

11 lines
266 B
Docker

FROM golang:onbuild
EXPOSE 8080
ADD http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz /var/tmp/
ADD index.html /go/bin/
RUN gunzip /var/tmp/GeoLite2-Country.mmdb.gz
CMD ["-f", "/var/tmp/GeoLite2-Country.mmdb"]
ENTRYPOINT ["/go/bin/app"]