myip/Dockerfile

12 lines
206 B
Docker
Raw Normal View History

2021-10-15 08:17:56 +00:00
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"]