FROM golang:1.17.2-alpine3.14 as builder
WORKDIR /src
COPY . .
RUN go build -o /go/bin/myip main.go
FROM alpine:3.14
EXPOSE 5080
COPY --from=builder /go/bin/myip /go/bin/myip
ENTRYPOINT ["/go/bin/myip"]