mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 15:37:24 +01:00
Rename to echoip, update to Go 1.11
This commit is contained in:
parent
1171909046
commit
3cd9b9efe3
15
Dockerfile
15
Dockerfile
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user