Update Dockerfile

This commit is contained in:
Martin Polden 2014-12-22 16:53:41 +01:00
parent 13d0408823
commit 65ffd03479
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,9 @@ FROM golang:onbuild
EXPOSE 8080
ADD ./assets /go/bin/assets
ADD ./index.html /go/bin/
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"]

View File

@ -9,8 +9,11 @@ deps:
go get -d -v
build:
@mkdir bin
@mkdir -p bin
go build -o bin/$(NAME)
test:
go test
docker-image:
docker build -t martinp/ifconfig .