mirror of https://github.com/mpolden/echoip
Initial Dockerfile.
This commit is contained in:
parent
81b7c71ce1
commit
889dbb099f
|
@ -0,0 +1,15 @@
|
|||
FROM golang:1.8.1-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY Makefile .
|
||||
|
||||
RUN apk add --update --no-cache git make curl && \
|
||||
go get github.com/martinp/ipd && \
|
||||
make get-geoip-dbs
|
||||
|
||||
COPY index.html .
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["ipd"]
|
||||
CMD ["-f", "/app/GeoLite2-Country.mmdb", "-c", "/app/GeoLite2-City.mmdb", "--port-lookup", "--reverse-lookup", "-L", "debug"]
|
||||
|
Loading…
Reference in New Issue