mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-16 22:13:33 +02:00
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Compile
|
||||||
|
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/echoip /opt/
|
||||||
|
WORKDIR /opt/
|
||||||
|
ENTRYPOINT ["/opt/echoip"]
|
Reference in New Issue
Block a user