This commit is contained in:
Jay
2018-11-06 10:06:17 +08:00
commit 1e3ba45665
318 changed files with 197956 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.11-alpine3.8 as builder
WORKDIR /data
RUN apk add --no-cache make git build-base
COPY . .
RUN go build -o geoip .
FROM alpine:latest
WORKDIR /data
COPY --from=builder /data/geoip /usr/bin
COPY scripts/download-geodb.sh /usr/bin
RUN apk add --no-cache ca-certificates wget curl && \
/usr/bin/download-geodb.sh
EXPOSE 10230
CMD ["/usr/bin/geoip"]