first version

This commit is contained in:
Jay
2019-05-03 06:30:54 +00:00
commit fd2e009376
4 changed files with 440 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM golang:1.11-alpine3.8 as builder
WORKDIR /go/src/git.trj.tw/golang/ipgo
COPY . .
RUN apk add --no-cache make git \
&& go get ./...
RUN go build -o ipgo .
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /data
COPY --from=builder /go/src/git.trj.tw/golang/ipgo/ipgo /usr/bin/
EXPOSE 8080
CMD ["/usr/bin/ipgo"]