mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-12 11:17:25 +01:00
15 lines
295 B
Docker
15 lines
295 B
Docker
|
# 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 ./...
|
||
|
RUN go install ./...
|
||
|
|
||
|
# Run
|
||
|
FROM alpine
|
||
|
RUN mkdir -p /opt/
|
||
|
COPY --from=build /go/bin/ipd /opt/
|
||
|
WORKDIR /opt/
|
||
|
ENTRYPOINT ["/opt/ipd"]
|