echoip/Dockerfile

11 lines
266 B
Docker
Raw Normal View History

2014-11-01 14:37:16 +01:00
FROM golang:onbuild
EXPOSE 8080
2014-12-22 16:53:41 +01:00
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
2014-11-01 14:37:16 +01:00
2014-12-22 16:53:41 +01:00
CMD ["-f", "/var/tmp/GeoLite2-Country.mmdb"]
2014-11-01 14:37:16 +01:00
ENTRYPOINT ["/go/bin/app"]