Rename to echoip, update to Go 1.11

This commit is contained in:
Maxim Baz 2018-08-27 23:30:18 +02:00
parent 1171909046
commit 3cd9b9efe3
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

@ -1,14 +1,15 @@
# Compile
FROM golang:alpine AS build
ADD . /go/src/github.com/mpolden/ipd
WORKDIR /go/src/github.com/mpolden/ipd
RUN apk --update add git
RUN go get -d -v ./...
FROM golang:1.11-alpine AS build
ADD . /go/src/github.com/mpolden/echoip
WORKDIR /go/src/github.com/mpolden/echoip
RUN apk --update add git gcc musl-dev
ENV GO111MODULE=on
RUN go get -d -v .
RUN go install ./...
# Run
FROM alpine
RUN mkdir -p /opt/
COPY --from=build /go/bin/ipd /opt/
COPY --from=build /go/bin/echoip /opt/
WORKDIR /opt/
ENTRYPOINT ["/opt/ipd"]
ENTRYPOINT ["/opt/echoip"]